好吧,我刚刚更新了我的 brew
并在 brew-cask
命令之后在我的机器上安装了 brew tap phinze/cask
公式。然后我做了 brew cask install vagrant
来安装 Vagrant,它突然弹出这个: Error: No available cask for vagrant
。试图弄清楚出了什么问题,我注意到它对任何木桶都失败了,brew cask search
都不起作用。
我错过了任何一步吗?它不应该工作吗?
我的 brew cask doctor
输出:
==> OS X Version:
10.9.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
1.8.7-p358
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew-cask Version:
0.32.0
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.32.0/rubylib
/usr/local/Library/Homebrew
/usr/local/Library/Homebrew/vendor
/Library/Ruby/Site/1.8
/Library/Ruby/Site/1.8/powerpc-darwin13.0
/Library/Ruby/Site/1.8/universal-darwin13.0
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8/universal-darwin13.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin13.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin13.0
.
==> Contents of $RUBYLIB Environment Variable:
nil
==> Contents of $RUBYOPT Environment Variable:
nil
==> Contents of $RUBYPATH Environment Variable:
nil
==> Contents of $RBENV_VERSION Environment Variable:
nil
==> Contents of $GEM_HOME Environment Variable:
nil
==> Contents of $GEM_PATH Environment Variable:
nil
==> Contents of $BUNDLE_PATH Environment Variable:
nil
==> Running As Privileged User:
No
最佳答案
所以它有问题(问题 #4032 ),他们用 Homebrew Cask 0.33.0 版本修复了这个不受欢迎的问题。
要更新,只需运行 brew update && brew upgrade brew-cask
,一切都应该正常工作。 :)
关于homebrew - 我尝试安装的任何木桶的 "No available cask"错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23305542/