我试过各种论坛和谷歌都无济于事。我正在尝试在 OS X 10.6.8 上安装 Mac Homebrew。当我从 Homebrew 主页尝试安装命令时:
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
我收到以下错误:
host-197-7-0-10:~ rzazueta$ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press enter to continue
==> Downloading and Installing Homebrew...
error: The requested URL returned error: 403 while accessing https://github.com/mxcl/homebrew /info/refs
fatal: HTTP request failed
Failed during: git fetch origin master:refs/remotes/origin/master -n
那个 403 很奇怪。知道这里会发生什么吗?我能够在另一台 Mac 上使用此方法成功安装,因此我确信问题出在我的机器上,但我什至不知道从哪里开始找出导致此问题的原因。
谢谢!
最佳答案
检查他们的安装页面 ( https://github.com/mxcl/homebrew/wiki/Installation ) 并查看备用安装。
相关行是:
cd /usr/local/bin
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
然后就
ln -s path/to/homebrew/bin/brew /usr/local/bin/brew
我认为 Link 上列出的路径过时了。
关于macos - 安装 Mac Homebrew 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12355771/