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

Cannot install shellcheck via brew #2229

Closed
qgaye opened this issue May 10, 2021 · 15 comments
Closed

Cannot install shellcheck via brew #2229

qgaye opened this issue May 10, 2021 · 15 comments

Comments

@qgaye
Copy link

qgaye commented May 10, 2021

when I run brew install shellcheck the program throw ERROR Failed to download resource "shellcheck_bottle_manifest"

image

if I directly visit https://ghcr.io/v2/homebrew/core/shellcheck/manifests/0.7.1-1 it show UNAUTHORIZED

image

@GhostLyrics
Copy link

@qgaye Update homebrew and try again, the latest shellcheck version available as of this comment is 0.7.2.

@shinokada
Copy link

shinokada commented May 21, 2021

I have the same problem. I updated the brew.

$ brew install shellcheck
Error: shellcheck: no bottle available!
You can try to install from source with:
  brew install --build-from-source shellcheck
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

image

My macOS has Apple M1.

@XiaobenLi00
Copy link

@shinokada I have the same problem as you have and I haven't fixed it.

@shinokada
Copy link

ghc 8.8 may be a lost cause for Apple Silicon.

GHC is a Haskell and when I tried brew install cabal-install, it has the same problem.

image

@GhostLyrics
Copy link

Are you on a M1 based mac?

@shinokada
Copy link

Yes.

@shinokada
Copy link

It's not ideal but thanks for having an online shellcheck. I use https://www.shellcheck.net/.
I just wait until it's updated.
I don't recommend the M1 chip yet, because a quite few important apps are not working, like Docker.

@JackonYang
Copy link

@GhostLyrics's solution works for me, I'm using M1 chip.

here is the output:

Screen Shot 2021-06-05 at 11 46 04

what did I do

run brew update as below.
Screen Shot 2021-06-05 at 11 50 51

there is no output for a while, I killed the process and run brew install shellcheck. it works

@shinokada
Copy link

@JackonYang
In your screenshot you have Errors. I don't think you installed it.
I updated and upgraded brew, but I still get an error.

image

@JackonYang
Copy link

@shinokada

it works as you can see. there might be something wrong with your environment.

Screen Shot 2021-06-05 at 13 18 21

@shinokada
Copy link

I got the mac two weeks ago.
Are these OS and version the same as yours?

image

@bhrutledge
Copy link

I think this might be a duplicate of #2162, because you've got an M1 MacBook, and shellcheck doesn't natively support Apple Silicon yet. I posted a workaround in #2162 (comment).

@dasl-
Copy link

dasl- commented Jun 10, 2021

It works now installing shellcheck with homebrew on M1 without rosetta:

% brew install shellcheck
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
at-spi2-atk                       libmobi                           maturin                           mongocli                          sqlbench                          tmuxp
==> Updated Formulae
Updated 224 formulae.
==> Renamed Formulae
grakn -> typedb
==> New Casks
kubenav               landrop               macstroke             p4                    prisma-studio         suuntodm5             universal-battle      wolfram-player        yippy
==> Updated Casks
Updated 135 casks.
==> Deleted Casks
crypt                                                               gitbox                                                              touch-bar-pong

==> Downloading https://ghcr.io/v2/homebrew/core/shellcheck/manifests/0.7.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/shellcheck/blobs/sha256:8844cd2a84bd07f8697463d9af3cc41cc4356edfa11d1171255884dc732ee9cd
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8844cd2a84bd07f8697463d9af3cc41cc4356edfa11d1171255884dc732ee9cd?se=2021-06-10T16%3A15%3A00Z&sig=bjs71%2F1JETvtvGbD21D1
######################################################################## 100.0%
==> Pouring shellcheck--0.7.2.arm64_big_sur.bottle.tar.gz
🍺  /opt/homebrew/Cellar/shellcheck/0.7.2: 7 files, 68.8MB

@shinokada
Copy link

@dasl- Thanks. It works.

@qgaye
Copy link
Author

qgaye commented Jun 21, 2021

@qgaye Update homebrew and try again, the latest shellcheck version available as of this comment is 0.7.2.

after update homwbrew, it works.

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

7 participants