安装 git 的替代来源。酿造安装git; kernel.org 停机维护
我刚刚注意到 kernel.org 因维护而关闭。是否有使用不同镜子的不同公式?或者我可以添加不同的源(如捆绑器?)到自制程序吗?
谢谢帮助!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我刚刚注意到 kernel.org 因维护而关闭。是否有使用不同镜子的不同公式?或者我可以添加不同的源(如捆绑器?)到自制程序吗?
谢谢帮助!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
快速解决方法:
履行
brew edit git
并放入
url 'https://github.com/git/git/tarball/v1.7.6.1'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
代替
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
md5 'd1e00772cc9dc6c571999feb9e8771ab'
也放
<代码>网址'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2
url 'http://kernel.org/pub/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
并且还放置
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'< /code>
而不是
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
保存并在该类型之后
brew 安装 git
。当 Linus 完成 kernelorg 的维护后,您可以恢复所有这些更改。
更新:
还添加了 htmldocs 的镜像。感谢找到该网址的 Tadashi Shigeoka。
更新:
最近的自制软件版本包含镜像,因此您不需要使用此技巧。
Quick workaround:
Perform
brew edit git
And put
url 'https://github.com/git/git/tarball/v1.7.6.1'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
Instead of
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
md5 'd1e00772cc9dc6c571999feb9e8771ab'
Also put
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2
instead of
url 'http://kernel.org/pub/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
And also put
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
instead of
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
Save and after that type
brew install git
.When Linus is done with kernelorg's maintenance, you can revert all these changes.
UPDATE:
Added mirror for htmldocs as well. Credits to Tadashi Shigeoka who found the url.
UPDATE:
Recent homebrew revision contains mirrors, so that you don't need to use this hack.
2015 年更新: 假设您有 ruby,解决方案会简单得多。
@Sharpie 几年前添加了镜像支持。这里最重要的答案是不必要的工作。改为这样做:
然后:
Updated for 2015: The solution is much simpler asssuming you have ruby.
@Sharpie added mirror support several years ago. The top answer here is more work than necessary. Do this instead:
And then:
我无法解析 git-manpages 的链接。这些手册页也可以在上面的 git-htmldocs url 中找到。
I had trouble resolving the link to the git-manpages. The manpages are also available at the above git-htmldocs url.
我找到镜像站点下载'git-htmldocs-1.7.6.1.tar.bz2'
网址:http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/
put
而不是
I found the mirror site to download 'git-htmldocs-1.7.6.1.tar.bz2'
url: http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/
put
instead of
我发现在尝试安装手册页时 freesbie.net 已关闭,但您可以
使用
I found out that freesbie.net was down when trying to install the manpages but you can use
instead of
git-htmldocs
url 有问题,不断被同行重置连接。注意到文件已下载并保存在
/Users/vish/Library/Caches/Homebrew
中,因此只需从 git-htmldocs-1.7.6.1.tar.bz2 href="http://git.exherbo.org/summer/packages/dev-scm/git/index.html" rel="nofollow">此处
并将其移动到目录中。
Had an issue with
git-htmldocs
url, kept getting connection reset by peer.Noticed that the files were downloaded and kept in
/Users/vish/Library/Caches/Homebrew
So just downloaded
git-htmldocs-1.7.6.1.tar.bz2
from hereand moved it into the directory.
HTML 文档可在此处获取:
the HTML docs are available here:
Git 源代码也镜像在 github 上(我忘记了在哪里,但快速搜索就能找到它)
Git source is also mirrored on github (I forget where off the top of my head, but a quick search will find it)