Trouble Installing Mac Homebrew

删除回忆录丶 提交于 2019-12-21 21:37:44

问题


I've tried the various forums and teh Google to no avail. I'm trying to install Mac Homebrew on OS X 10.6.8. When I try the install command from the Homebrew Homepage:

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)

I get the following errors:

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

That 403 is rather odd. Any idea what could be happening here? I was able to successfully install using this method on another Mac, so I feel confident the issue is on my machine, but I don't even know where to begin to figure out what's causing this.

Thanks!


回答1:


Check their installation page (https://github.com/mxcl/homebrew/wiki/Installation) and look under alternate installs.

The pertinent line being:

cd /usr/local/bin    
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew

then just

ln -s path/to/homebrew/bin/brew /usr/local/bin/brew

I think the path listed on http://mxcl.github.com/homebrew/ is dated.




回答2:


I had the same problem on OS X 10.8.2. It turned out that I had an old version of git (1.6.5.2) installed in /usr/local. When I removed that and used the version provided with Mountain Lion (1.7.10.2), the normal install worked fine.




回答3:


Just installed using:

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)

and it work without problems. Maybe it was a temporary problem...




回答4:


This was a temporary Github problem. It happens occasionally. Try again later.




回答5:


Carefull, the install script has moved from raw.github.com/mxcl/homebrew/go to raw.github.com/mxcl/homebrew/go/install !




回答6:


Change your script to

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

instead of ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)




回答7:


I have tried all the above answers but they din't work.Then I found maybe the link was broken. I use the following command and succeed:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


来源:https://stackoverflow.com/questions/12355771/trouble-installing-mac-homebrew

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!