Homebrew-cask: brew cask install SOMEAPP failed on OS X Yosemite

Created on 20 Oct 2014  Â·  11Comments  Â·  Source: Homebrew/homebrew-cask

Update to OS X Yosemite, try to use cask to install some app. But it said:

"➜ ~ brew cask install quicksilver
Error: Unknown command: cask"

I am using iterm 2 with zsh

Most helpful comment

@starcroce It means you don't have any Cask directories.
I see that you tried installing and uninstalling brew-cask and it didn't help. Try this:

brew uninstall brew-cask
brew untap caskroom/cask
brew install caskroom/cask/brew-cask

All 11 comments

What commands did you use to install Cask?

Hi. What does this command print?
It checks what Cask-related directories you have on your system.

directories="/opt/homebrew-cask /opt/homebrew-cask/Caskroom /usr/local/Library/Taps/caskroom /usr/local/Library/Taps/caskroom/homebrew-cask"

for directory in $directories; do
  [[ -d $directory ]] && echo "$directory OK"
done

Hi!

Error: Unknown command: cask is coming from Homebrew, which seems to believe that homebrew-cask is not installed. Therefore it would be good to try

$ brew install brew-cask

brew-cask is already installed. It said:

➜  ~  brew install brew-cask
Warning: brew-cask-0.45.0 already installed

I have also tried brew uninstall brew-cask and then brew install brew-cask. The result is the same.

yegortimoschenko, I tried your commands and there is not any output. Does it mean that some cask-related directories are missing? Do you know how to fix it?

What is the output of brew doctor?

If you've upgraded to Yosemite from Mavericks, like I had on one box, you might actually want to update Homebrew, then try again.

brew update

ndr-qef, no error, some warning.

ryanmaclean I have tried upgrade cask, but it still doesn't work.

@starcroce - not cask, but Homebrew itself using the above command.
It worked for me, but I'm assuming a few things here...

@starcroce It means you don't have any Cask directories.
I see that you tried installing and uninstalling brew-cask and it didn't help. Try this:

brew uninstall brew-cask
brew untap caskroom/cask
brew install caskroom/cask/brew-cask

@yegortimoschenko I have tried your commands to re-install brew-cask. I can cd to these dirs, but it still said that Error: Unknown command: cask.

Anyway, I found a solution for that https://github.com/Homebrew/homebrew/issues/29843#issuecomment-45242894

I think it may be iTerm2 issue about not getting $PATH correctly. I have some problem about sudo pip install PYTHONLIB. But it also works after using the above method.

Thanks guys!

@yegortimoshenko it works for me!Thank you:-D

Was this page helpful?
0 / 5 - 0 ratings