简体   繁体   English

无法使用Homebrew安装Git

[英]Unable to install Git using Homebrew

I have been trying to install Git using Homebrew on OSX Lion for over a week now, with no luck. 我一直试图在OSX Lion上使用Homebrew安装Git一个多星期了,没有运气。 Other installs have been fine, what am I doing wrong please? 其他安装都很好,我做错了什么?

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

If you follow the link that 'brew install git' spits out - you will find that the website is "Down for maintenance". 如果你按照'brew install git'吐出的链接 - 你会发现该网站是“Down for maintenance”。 That's why it is not working! 这就是为什么它不起作用!

A clever SO'er found the solution to this problem by using a mirror for the tar. 一个聪明的SO'er通过使用tar的镜子找到了解决这个问题的方法。 You can read his instructions in this answer 您可以在此答案中阅读他的说明

If you go to the URL yourself you will notice the huge Maintenance warning. 如果您自己转到URL,您会注意到巨大的维护警告。 This is probably connected with the recent security breach on kernel.org. 这可能与kernel.org最近的安全漏洞有关。

Just try again later when the kernel.org admins are sure that the systems are save. 稍后在kernel.org管理员确定系统保存时再试一次。

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. 404是众所周知的,但正如所示,500系列反映了服务器问题。 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). 优秀的Web开发人员也应该查看他们的日志,例如,如果他们从链接到他们现在不再使用的位置定期点击,他们应该返回“301”(永久移动),这可能会触发引用链接器更新其链接(或不更新)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM