"brew install git" 尝试下载手册页失败
"brew install git" fails trying to download manpages
我正在尝试在 OS X 10.6.8 运行ning XCode 3.2.6(最新版本)上使用 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 跳过该下载?如果这不起作用,下一个最好的尝试是什么?
为什么不使用官方 git 安装程序?
运行 brew update
在安装软件之前确保您使用的是最新版本的公式。当前 git
公式有工作资源。
您可以将下载的文件暂存为 /Library/Caches/Homebrew/git--man-1.9.0.tar.gz
。
我正在尝试在 OS X 10.6.8 运行ning XCode 3.2.6(最新版本)上使用 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 跳过该下载?如果这不起作用,下一个最好的尝试是什么?
为什么不使用官方 git 安装程序?
运行 brew update
在安装软件之前确保您使用的是最新版本的公式。当前 git
公式有工作资源。
您可以将下载的文件暂存为 /Library/Caches/Homebrew/git--man-1.9.0.tar.gz
。