干净的Homebrew不会安装任何东西

nol*_*oli 5 macos homebrew

我试图用自制软件在OS X 10.6.8上安装rabbitmq,但它失败了......所以我试着擦掉我的Homebrew安装并重新安装.但是,现在我尝试安装的任何内容都会收到相同的失败消息.我也没有看到任何调试方法.谁看过这个吗?我也安装了XCode 3.2.6.在这里,我尝试安装git

brew install git -v
Run Code Online (Sandbox Code Playgroud)

产量

    make -C templates DESTDIR='' install
: no custom templates yet
install -d -m 755 '/usr/local/Cellar/git/1.7.7.1/share/git-core/templates'
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
ls: /install_*: No such file or directory
(cd blt && tar cf - .) | \
    (cd '/usr/local/Cellar/git/1.7.7.1/share/git-core/templates' && umask 022 && tar xof -)
/bin/sh: line 0: cd: /usr/local/Cellar/git/1.7.7.1/share/git-core/templates: No such file or directory
make[1]: *** [install] Error 1
make: *** [install] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L40
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 9a6bd3473936175163a642e28f6ce0b8a659cf6d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: 8-core 64-bit sandybridge
OS X: 10.6.8
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.2.6
GCC-4.0: build 5494 
GCC-4.2: build 5666 
LLVM: build 2335 
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
MAKEFLAGS: -j8

Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.7.1 install
These existing issues may help you:
    https://github.com/mxcl/homebrew/issues/6257
    https://github.com/mxcl/homebrew/issues/6820
    https://github.com/mxcl/homebrew/issues/6971
    https://github.com/mxcl/homebrew/issues/7462
    https://github.com/mxcl/homebrew/issues/8030
    https://github.com/mxcl/homebrew/issues/8230
    https://github.com/mxcl/homebrew/issues/8244
Otherwise, please report the bug:
    https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
:~ $ 
Run Code Online (Sandbox Code Playgroud)

Ada*_*wis 3

假设 homebrew 将文件拉下来,/usr/local/Cellar/git/1.7.7.1看起来您的 make 命令可能有问题。有几点值得尝试:

  1. 检查正在使用哪个“make”:which make默认情况下应位于 /usr/bin/make。
  2. 如果 #1 指向您期望的位置,您可能会尝试使用 make 文件构建一个简单的 hello world 项目,只是为了检查它是否正常工作。