无法使用 Homebrew 安装 Git
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7389712/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to install Git using Homebrew
提问by pingu
I have been trying to install Git using Homebrew on OSX Lion for over a week now, with no luck. Other installs have been fine, what am I doing wrong please?
我已经尝试在 OSX Lion 上使用 Homebrew 安装 Git 一个多星期了,但没有成功。其他安装都很好,请问我做错了什么?
MacBookPro:Rails pingu$ brew install git
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2
curl: (22) The requested URL returned error: 503
Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7) http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2 -o /Users/pingu/Library/Caches/Homebrew/git-1.7.6.1.tar.bz2
回答by Michal
If you follow the link that 'brew install git' spits out - you will find that the website is "Down for maintenance". That's why it is not working!
如果您点击“brew install git”输出的链接 - 您会发现该网站“停机维护”。这就是它不起作用的原因!
A clever SO'er found the solution to this problem by using a mirror for the tar. You can read his instructions in this answer
一个聪明的 SO'er 通过使用 tar 的镜子找到了解决这个问题的方法。您可以在此答案中阅读他的说明
回答by Holger Just
If you go to the URLyourself you will notice the huge Maintenance warning. This is probably connected with the recent security breachon kernel.org.
如果您自己访问该URL,您会注意到巨大的维护警告。这可能与最近kernel.org 上的安全漏洞有关。
Just try again later when the kernel.org admins are sure that the systems are save.
稍后当 kernel.org 管理员确定系统已保存时再试一次。
回答by pquodling
It is worth keeping a chart of the major status codes, handy. A good source is https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
值得保留主要状态代码的图表,方便。一个很好的来源是https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
404's are well known enough, but the 500 series, as indicated, reflect a server problem. Good web developers should also be looking at their logs, and if, for example, they are getting regular hits from a link to a location that they now no longer use, they should return a '301' (Moved Permanently), which may trigger the referring linker to update their link (or not).
404 是众所周知的,但 500 系列,正如所指出的,反映了服务器问题。优秀的 Web 开发人员还应该查看他们的日志,例如,如果他们从指向他们现在不再使用的位置的链接中获得定期点击,他们应该返回“301”(永久移动),这可能会触发引用链接器更新其链接(或不更新)。