Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 干净的自制啤酒赢得了';不要安装任何东西_Macos_Homebrew - Fatal编程技术网

Macos 干净的自制啤酒赢得了';不要安装任何东西

Macos 干净的自制啤酒赢得了';不要安装任何东西,macos,homebrew,Macos,Homebrew,我试图用自制软件在OS X 10.6.8上安装rabbitmq,但失败了。。因此,我尝试删除我的自制安装并重新安装。然而,现在我得到了相同的失败消息,我试图安装的任何东西。我也看不到任何调试方法。以前有人见过这个吗?我还安装了XCode 3.2.6。在这里,我尝试使用 brew install git -v 输出 make -C templates DESTDIR='' install : no custom templates yet install -d -m 755 '/usr/

我试图用自制软件在OS X 10.6.8上安装rabbitmq,但失败了。。因此,我尝试删除我的自制安装并重新安装。然而,现在我得到了相同的失败消息,我试图安装的任何东西。我也看不到任何调试方法。以前有人见过这个吗?我还安装了XCode 3.2.6。在这里,我尝试使用

brew install git -v
输出

    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
:~ $ 

假设homebrew将文件拉到
/usr/local/cillar/git/1.7.7.1
,看起来make命令可能有问题。有几件事可以尝试:

  • 检查正在使用的“make”:默认情况下,哪个make应位于/usr/bin/make
  • 如果#1指向您期望的位置,您可以尝试使用make文件构建一个简单的hello world项目,以检查它是否正常工作
    这是一个关于在OSX上建立并运行开发库的编程问题。请不要迁移到超级用户。谢谢Adam,我在make-install步骤中遇到了问题,我已经缩小了范围。看起来Homebrew会在路径上查找文件名与install_*匹配的文件,并对其执行一些奇怪的操作。。。(也许只是盲目地运行它们?)我的路径上有一些名为install_*的安装脚本,这些脚本似乎干扰了自制程序。一旦我将它们从路径中删除,自制软件又能正常运行。@noli:make盲目安装似乎有些奇怪。OSX很可能将“install”视为传递给make命令的目标,我相信它会在您的路径中搜索“install”目标。不管我怎么想,很高兴听到你的想法得到了解决。