【发布时间】:2015-04-18 18:34:34
【问题描述】:
我正在尝试在运行 XCode 3.2.6(Snow Leopard 的最新版本)的 OS X 10.6.8 上使用 Homebrew 安装 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
联机帮助页的 url 在浏览器中工作得很好,所以我直接下载了 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 跳过该下载?如果这不起作用,下一个最好的尝试是什么?
【问题讨论】:
-
你跑过
brew update吗? Homebrew 目前发布 git 2.3.5。
标签: git homebrew osx-snow-leopard manpage