【问题标题】:"brew install git" fails trying to download manpages“brew install git”尝试下载手册页失败
【发布时间】: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


【解决方案1】:

为什么不使用官方的 git 安装程序?

http://git-scm.com/download/mac

【讨论】:

  • 最后,就是这样。我希望能更好地处理 Hombrew 的故障排除,但可惜不是这样。
【解决方案2】:

在安装软件之前运行brew update,以确保您使用的是最新版本的公式。当前的git 公式有一个工作资源。

您可以将下载的文件暂存为/Library/Caches/Homebrew/git--man-1.9.0.tar.gz

【讨论】:

    猜你喜欢
    • 2012-01-29
    • 1970-01-01
    • 2013-04-03
    • 1970-01-01
    • 2023-03-14
    • 2016-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多