Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install codeclimate fails on Mac M1 #33

Open
ernestp opened this issue Dec 14, 2023 · 1 comment
Open

brew install codeclimate fails on Mac M1 #33

ernestp opened this issue Dec 14, 2023 · 1 comment

Comments

@ernestp
Copy link

ernestp commented Dec 14, 2023

% docker login

…
Login Succeeded

% brew install codeclimate

==> Fetching codeclimate/formulae/codeclimate
==> Downloading https://github.com/codeclimate/codeclimate/archive/v0.91.0.tar.gz
Already downloaded: ~/Library/Caches/Homebrew/downloads/a3e52ce2f0b75029be51b3ac3300f6751a8c4e8f1501001b006af425146804c6--codeclimate-0.91.0.tar.gz
==> Installing codeclimate from codeclimate/formulae
==> make install
Last 15 lines from ~/Library/Logs/Homebrew/codeclimate/01.make:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Unable to run `docker version', the docker daemon may not be running
id: illegal option -- -
usage: id [user]
       id -A
       id -F [user]
       id -G [-n] [user]

       id -P [user]
       id -g [-nr] [user]
       id -p [user]
       id -u [-nr] [user]
bin/check: line 11: [: : integer expression expected
Please ensure `docker version' succeeds and try again
make: *** [install] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/codeclimate/homebrew-formulae/issues

These open issues may also help:
brew install codeclimate fails on Mac M2 https://github.com/codeclimate/homebrew-formulae/issues/32

% docker version

Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.25.2 (129061)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:31:36 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@orangewolf
Copy link

If you are using Docker Desktop, then you need access to the docker socket in order for the install to work. Either solution found here: https://stackoverflow.com/a/74148162 will work. I assume you probably want the permanent symlink or to set the env var in your startup shell (.bashrc or .zshrc) as it will likely stop working on each new shell otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants