Perl5.12 未通过 Macports 安装
当尝试通过 Macports 安装 Imagemagick 时,在构建 perl5.12 依赖项时我不断收到错误消息。它说:错误:处理过程中遇到状态1。
我尝试过更新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
有谁知道发生了什么或我在做什么做错了吗?
When trying to install Imagemagick via Macports, I keep getting an error when it goes to build the perl5.12 dependancy. It says: Error: Status 1 encountered during processing.
I’ve tried updating Macports, installing/building perl5.12 independently, uninstalling and reinstalling perl5.12 to no avail. Here’s what error part of the log says:
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
Does anybody know what’s going on or what I’m doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,最新的 macPorts 更新解决了我的问题,只需运行 selfupdate。
Turns out that latest macPorts update fixed my issue, just had to run selfupdate.
您使用的是哪个版本的 Mac OS X?我有 Lion,它附带 Perl 5.12.3。您可能需要安装开发人员工具。
您可以随时尝试 ActivePerl 版本 5.12.4。我还没有在 Mac 上尝试过 ActivePerl,但是如果您安装了开发人员工具,那么您将安装所需的 gcc 编译器和 make,因此您可以安装 XS CPAN 软件包。
在 PC 上,您必须从 Perl 包管理器安装 CPAN,并且并非所有 CPAN 模块都会安装,但我不知道您是否在 Mac 上使用 ActivePerl 时遇到同样的问题,因为 Mac 是 Unix 操作系统。
What version of Mac OS X do you have? I have Lion, and it comes with Perl 5.12.3. You may need to install the developer tools.
You can always try ActivePerl which is version 5.12.4. I haven't tried ActivePerl on the Mac, but if you have the developer tools installed, you'll have the required gcc compiler and make installed, so you can install the XS CPAN packages.
On the PC, you have to install CPAN from the Perl Package Manager and not all CPAN modules will install, but I don't know if you have the same issues with ActivePerl on the Mac since the Mac is a Unix operating system.