2011-09-22 133 views
3

當試圖通過Macports安裝Imagemagick時,我在構建perl5.12依賴時遇到錯誤。它說:Error: Status 1 encountered during processing.Perl5.12沒有通過Macports進行安裝

我試過更新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.

有誰知道發生了什麼事或什麼,我做錯了什麼?

+0

您切斷了日誌的相關部分;來自構建系統的有趣錯誤消息將會在第一行之上。 – raimue

+0

@Raim是的,對不起。現在添加。 –

回答

1

原來,最新的macPorts更新解決了我的問題,只好運行selfupdate。

-3

你有什麼版本的Mac OS X?我有Lion,它帶有Perl 5.12.3。您可能需要安裝開發人員工具。

您可以隨時嘗試ActivePerl這是版本5.12.4。我沒有在Mac上試過ActivePerl,但是如果你安裝了開發工具,你將擁有所需的gcc編譯器並進行安裝,所以你可以安裝XS CPAN軟件包。

在PC上,您必須從Perl Package Manager安裝CPAN,並非所有的CPAN模塊都會安裝,但我不知道Mac上的ActivePerl是否有相同的問題,因爲Mac是Unix操作系統系統。