Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.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 XCode 4.x不包括Perl MakeMaker。brew失败-请求Perl文件。_Macos_Perl_Homebrew_Xcode4.3_Makemaker - Fatal编程技术网

Macos XCode 4.x不包括Perl MakeMaker。brew失败-请求Perl文件。

Macos XCode 4.x不包括Perl MakeMaker。brew失败-请求Perl文件。,macos,perl,homebrew,xcode4.3,makemaker,Macos,Perl,Homebrew,Xcode4.3,Makemaker,我正在按照说明安装node.js。 刚刚安装了自制软件。我试过这个 brew install git -v 但是得到这个错误消息:make[2]:*没有规则使目标“…config.h”成为“perl.mak”所需要的。停下来 它要求在“/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE”中找到我的config.h文件,但我在那里找到的文件只有“libperl.dylib”和“Perl.h”。也许原因是我使用10.6而不是10.7

我正在按照说明安装node.js。 刚刚安装了自制软件。我试过这个

brew install git -v 但是得到这个错误消息:make[2]:*没有规则使目标“…config.h”成为“perl.mak”所需要的。停下来

它要求在“/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE”中找到我的config.h文件,但我在那里找到的文件只有“libperl.dylib”和“Perl.h”。也许原因是我使用10.6而不是10.7?我为Lion的Xcode安装了命令行工具

同样的问题。那里但我不明白这对我有什么帮助。修复方法:

+ # Clean XCode 4.x installs don't include Perl MakeMaker 32 + ENV['NO_PERL_MAKEMAKER']='1' if MacOS.lion? 33 + 我的命令行:

==> Downloading http://git-core.googlecode.com/files/git-1.7.10.tar.gz ... (text I removed) rm -f git-add--interactive git-add--interactive+ && \ INSTLIBDIR=`MAKEFLAGS= make -C perl -s --no-print-directory instlibdir` && \ sed -e '1{' \ -e ' s|#!.*perl|#!/usr/bin/perl|' \ -e ' h' \ -e ' s=.*=use lib (split(/:/, $ENV{GITPERLLIB} || "'"$INSTLIBDIR"'"));=' \ -e ' H' \ -e ' x' \ -e '}' \ -e 's/@@GIT_VERSION@@/1.7.10/g' \ git-add--interactive.perl >git-add--interactive+ && \ chmod +x git-add--interactive+ && \ mv git-add--interactive+ git-add--interactive make[2]: *** No rule to make target `/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/config.h', needed by `perl.mak'. Stop. make[1]: *** [instlibdir] Error 2 make: *** [git-add--interactive] Error 2 make: *** Waiting for unfinished jobs.... ==> Exit Status: 2 https://github.com/mxcl/master/blob/master/Library/Formula/git.rb#L49 ==> Build Environment CPU: dual-core 64-bit penryn MacOS: 10.6.8-i386 Xcode: 4.3 MacPorts/Fink: /sw/bin/fink CC: /usr/bin/clang CXX: /usr/bin/clang++ => /usr/bin/clang LD: /usr/bin/clang CFLAGS: -Os -w -pipe -march=native -Qunused-arguments CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments MAKEFLAGS: -j2 Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.10 CC=/usr/bin/clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install (git.rb:49)
安装您自己的Perl。接下来是10.6雪豹版。

下载投票人:因为自制软件似乎没有“帮助邮件列表”之类的东西。我认为没有比在这里发布更好的选择了。这就是为什么你应该安装自己的perl,并假装系统没有。是的。我刚刚弄明白了。现在安装5.14。无论如何,谢谢你。