我尝试按照github上的说明在Mac OS X Yosemite上安装最新的ASP.NET。
我已经有Homebrew,所以这一步很好:
brew tap aspnet/k
但是,在下一步brew install kvm
,我收到错误:
$ brew install kvm
==> Installing kvm dependency: mono
==> Downloading http://download.mono-project.com/sources/mono/mono-3.8.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mono-3.8.0.tar.bz2
==> Downloading http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mono--monolite"
Download failed: http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz
注意:我第一次运行此操作时,在成功安装mono-3.8.0
时收到的消息略有不同。
David Fowler很快在Twitter上回答了我的问题并建议brew update
(感谢大卫!)但是我得到了这个:
$ brew update
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/google-perftools.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
此时,似乎这是一个自制问题。我做错了什么?
更新:对不起,我是个白痴。正如火星和David Folwer的agua所说,我修正了以下问题:
cd /usr/local/Library/Formula/
git reset HEAD google-perftools.rb
git checkout google-perftools.rb
brew update
brew install kvm
而这次kvm安装好了。然后我将行source /usr/local/Cellar/kvm/1.0.0-beta1/libexec/kvm.sh
添加到我的.bash_profile
答案 0 :(得分:0)
我们在评论中讨论。
此文件Library / Formula / google-perftools.rb上存在git冲突。
你应该撤消你的改变:
git checkout -- Library/Formula/google-perftools.rb
或进行git重置。
再次更新brew