安装 git 的替代来源。酿造安装git; kernel.org 停机维护
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7360214/
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
alternative source for installing git. brew install git; kernel.org Down for maintenance
提问by fluxsaas
i just noticed that kernel.org is Down for maintenance. is there a different formula which uses a different mirror ? or could i add a different source (like bundler?) to homebrew?
我刚刚注意到 kernel.org 正在停机维护。是否有不同的公式使用不同的镜子?或者我可以在自制软件中添加一个不同的来源(比如 bundler?)?
thx for help!
谢谢你的帮助!
回答by Sotomajor
Quick workaround:
Perform
brew edit git
快速解决方法:执行
brew edit git
And put
并放
url 'https://github.com/git/git/tarball/v1.7.6.1'
url 'https://github.com/git/git/tarball/v1.7.6.1'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
Instead of
代替
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
md5 'd1e00772cc9dc6c571999feb9e8771ab'
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
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'
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'
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'
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
Save and after that type brew install git
.
保存,然后键入brew install git
.
When Linus is done with kernelorg's maintenance, you can revert all these changes.
当 Linus 完成 kernelorg 的维护后,您可以恢复所有这些更改。
UPDATE:Added mirror for htmldocs as well. Credits to Tadashi Shigeoka who found the url.
更新:也为 htmldocs 添加了镜像。感谢发现网址的 Tadashi Shigeoka。
UPDATE:Recent homebrew revision contains mirrors, so that you don't need to use this hack.
更新:最近的自制软件修订版包含镜像,因此您无需使用此 hack。
回答by Day Davis Waterbury
Updated for 2015:The solution is muchsimpler asssuming you have ruby.
2015 年更新:假设您有 ruby ,解决方案要简单得多。
@Sharpie added mirror support several years ago. The top answer here is more work than necessary. Do this instead:
@Sharpie 几年前添加了镜像支持。这里的最佳答案是比必要更多的工作。改为这样做:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
And then:
进而:
brew install git
酿造安装git
回答by Bryan Woodcox
I had trouble resolving the link to the git-manpages. The manpages are also available at the above git-htmldocs url.
我在解析 git 手册页的链接时遇到了麻烦。联机帮助页也可以在上面的 git-htmldocs url 中找到。
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
回答by Blake Walters
I found out that freesbie.net was down when trying to install the manpages but you can use
我发现在尝试安装联机帮助页时 freesbie.net 已关闭,但您可以使用
url 'http://distfiles.macports.org/git-core/git-manpages-1.7.6.1.tar.bz2'
instead of
代替
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2'
回答by Tadashi Shigeoka
I found the mirror site to download 'git-htmldocs-1.7.6.1.tar.bz2'
我找到了下载'git-htmldocs-1.7.6.1.tar.bz2'的镜像站点
url: http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/
网址:http: //ftp.ntu.edu.tw/ftp/pub2/software/scm/git/
put
放
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
网址“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'
网址“http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2”
回答by Vish
Had an issue with git-htmldocs
url, kept getting connection reset by peer.
git-htmldocs
url有问题,不断由对等方重置连接。
Noticed that the files were downloaded and kept in /Users/vish/Library/Caches/Homebrew
注意到文件被下载并保存在 /Users/vish/Library/Caches/Homebrew
So just downloaded git-htmldocs-1.7.6.1.tar.bz2
from hereand moved it into the directory.
所以刚刚git-htmldocs-1.7.6.1.tar.bz2
从这里下载
并将其移动到目录中。
回答by Tilo
the HTML docs are available here:
HTML 文档可在此处获得:
http://mirror.linux.org.au/software/scm/git/
回答by James Dunmore
Git source is also mirrored on github (I forget where off the top of my head, but a quick search will find it)
Git 源代码也在 github 上镜像(我忘记了我的头顶在哪里,但快速搜索会找到它)