当我命令“brew cask install virtualbox”或“brew cask search google-chrome”时发生自制错误
我正在尝试安装brew-cask的虚拟盒,但是返回这种错误,我无法安装virtualbox。 我使用MacOSX Lion 10.7.5和自制软件0.9.5,ruby 2.1.0-p0
我在下面的terminal中描述了这个过程。
首先, brew tap
命令成功。
$ brew tap phinze/cask Cloning into '/usr/local/Library/Taps/phinze/homebrew-cask'... remote: Reusing existing pack: 32538, done. remote: Counting objects: 36, done. remote: Compressing objects: 100% (36/36), done. remote: Total 32574 (delta 16), reused 2 (delta 0) Receiving objects: 100% (32574/32574), 11.72 MiB | 379 KiB/s, done. Resolving deltas: 100% (19138/19138), done. Tapped 1 formula It looks like you tapped a private repository. To avoid entering your credentials each time you update, you can use git HTTP credential caching or issue the following command: cd /usr/local/Library/Taps/phinze/homebrew-cask git remote set-url origin git@github.com:phinze/homebrew-cask.git
其次,我已经安装了brew-cask,如下所示
$ brew install brew-cask Warning: brew-cask-0.35.0 already installed
第三,当我试图安装virtualbox,但它返回这种错误,我无法安装Virtualbox。
$ brew cask install virtualbox ==> Removing legacy Tap Error: No available cask for virtualbox
自制酒桶库已经移动 。 你试过了吗:
brew tap caskroom/cask brew install brew-cask brew cask install virtualbox
而不是phinz?
更新:
正如Jon Nalley指出的那样, brew install brew-cask
现在已经被弃用了 :
重要2015年12月更新:现在Homebrew-Cask将与Homebrew一起保持最新状态(详见#15381)。 如果还没有,运行
brew uninstall --force brew-cask; brew update
brew uninstall --force brew-cask; brew update
切换到新系统。
brew tap caskroom/cask brew install brew-cask brew cask install virtualbox
为我工作。
起初,我得到了“多个水龙头”的错误:
~ $ brew install brew-cask Error: Formulae found in multiple taps: * caskroom/cask/brew-cask * phinze/cask/brew-cask
然后,我包括完整(caskroom)path酿造木桶,它的工作:
brew install caskroom/cask/brew-cask brew cask install virtualbox
brew install caskroom/cask/brew-cask brew install homebrew/completions/brew-cask-completion
这对我有效