好吧,我刚刚在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
答案 0 :(得分:4)
所以它是错误的(问题#4032)并且他们用Homebrew Cask 0.33.0版本解决了这个不受欢迎的问题。
要更新,只需运行brew update && brew upgrade brew-cask
,一切都应该正常运行。 :)