How to install cask for homebrew on mac
Asked Answered
P

4

11

I have set up git and homebrew, ran brew reset-update, brew update and brew doctor none of these give me errors but when I try to install glew using: brew install glew it gives me many errors:

fatal: the remote end hung up unexpectedly30.11 MiB | 4.92 MiB/s
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask     /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask` exited with 128.

I figured it was because cask wasn't installed(even though from what I've read it's supposed to install with homebrew) so tried to install cask separately too but it also gives me the same error as the bottom one, I've also tried reinstalling git and homebrew, updating everything as well as restarting my mac. Any help would be appreciated.

Proulx answered 1/2, 2021 at 14:3 Comment(0)
J
10

You can install cask using this command. Please note that this installs cask which turns out to be unrelated to Homebrew casks as @moribvndvs pointed out:

$ brew install cask

For details, please see https://cask.readthedocs.io/en/latest/guide/installation.html

Jemison answered 13/2, 2021 at 5:46 Comment(2)
This installs Cask (github.com/cask/cask) which is completely unrelated to Homebrew casks.Cronyism
Thanks for pointing that out, @moribvndvsJemison
F
3

You can do

brew tap homebrew/cask

which makes additional apps available for install. Then simply

brew install glew

would do.

Federica answered 23/6, 2021 at 6:45 Comment(0)
S
2

Homebrew Cask is implemented as part of Homebrew. All Homebrew Cask commands begin with brew

Please refer the link for more details https://github.com/Homebrew/homebrew-cask/blob/master/USAGE.md

Striation answered 26/5, 2021 at 5:23 Comment(0)
S
2

At the time of this writing, Cask is already installed as part of Homebrew on Macs. You just need to run:

homebrew <my-command> --cask

For reference, see this thread on the deprecation.

Selfcontrol answered 12/5, 2022 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.