Perl5.12没有通过Macports安装

时间:2011-09-22 00:57:24

标签: macports

当尝试通过Macports安装Imagemagick时,我在构建perl5.12依赖时遇到错误。它说:Error: Status 1 encountered during processing.

我尝试过更新Macports,独立安装/构建perl5.12,卸载并重新安装perl5.12无济于事。这是日志的错误部分:

Making x2p stuff
:info:build ./perl -f -Ilib pod/buildtoc --build-toc -q
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5.12/perl5.12/work/perl-5.12.3/x2p'
:info:build You haven't done a "make depend" yet!
:info:build make[1]: *** [hash.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5.12/perl5.12/work/perl-5.12.3/x2p'
:info:build make: *** [translators] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5.12/perl5.12/work/perl-5.12.3'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5.12/perl5.12/work/perl-5.12.3" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for perl5.12): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install perl5.12
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Log for perl5.12 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5.12/perl5.12/main.log

Here’s the whole log.

有人知道发生了什么事或我做错了吗?

2 个答案:

答案 0 :(得分:1)

原来最新的macPorts更新修复了我的问题,只需运行selfupdate。

答案 1 :(得分:-3)

您有哪个版本的Mac OS X?我有Lion,它附带Perl 5.12.3。您可能需要安装开发人员工具。

您始终可以尝试使用版本5.12.4的ActivePerl。我没有在Mac上尝试过ActivePerl,但是如果安装了开发人员工具,你将拥有所需的gcc编译器并安装,所以你可以安装XS CPAN软件包。

在PC上,您必须从Perl软件包管理器安装CPAN,并不是所有的CPAN模块都会安装,但我不知道Mac上是否存在与ActivePerl相同的问题,因为Mac是Unix操作系统