我正在尝试使用Homebrew在运行XCode 3.2.6(最新的Snow Leopard)的OS X 10.6.8上安装Git。当我运行brew install git
时,我收到以下输出:
==> Downloading https://git-core.googlecode.com/files/git-1.9.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/git-1.9.0.tar.gz
==> make prefix=/usr/local/Cellar/git/1.9.0 sysconfdir=/usr/local/etc CC=gcc-4.2
==> make CC=gcc-4.2 CFLAGS= LDFLAGS=
==> make clean
==> make CC=gcc-4.2 CFLAGS= LDFLAGS=
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.9.0.tar.gz
curl: (52) Empty reply from server
Error: Failed to download resource "git--man"
Download failed: http://git-core.googlecode.com/files/git-manpages-1.9.0.tar.gz
网页的网址在浏览器中工作得很好,所以我直接下载了tarball,没有任何问题。我猜测如果我可以将联机帮助页粘贴到正确的目录中,Homebrew会看到它们已经存在并且不会尝试curl
违规的URL。如果它不起作用,我想我必须开始攻击git.rb或相关的makefile?
运行brew doctor
给出了一些关于库的警告(我非常肯定这里不重要)以及:
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
/usr/local/share/man/de
/usr/local/share/man/de/man1
You must: brew install git
所以问题:我应该在哪里放置手册tarball以试图让Homebrew跳过下载?如果这不起作用,那么下一个最好的尝试是什么?
答案 0 :(得分:0)
为什么不使用官方git安装程序?
答案 1 :(得分:0)
在安装软件之前运行brew update
以确保您使用当前版本的公式。当前git
公式具有工作资源。
您可以将下载的文件暂存为/Library/Caches/Homebrew/git--man-1.9.0.tar.gz
。