MacPorts安装端口失败

时间:2013-11-23 03:43:12

标签: macports

使用MacPorts安装PHP,MySQL和Apache2时遇到问题。目前我的操作系统是Mavericks,我正在下载官方二进制包for mavericks(也尝试从源代码编译并运行selfupdate)但我收到此错误消息:

--->  Building readline
Error: org.macports.build for port readline returned: command execution failed
Error: Failed to install readline
Please see the log file for port readline for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_readline/readline/main.log
Error: The following dependencies were not installed: apache2 apr-util mysql5 readline tcp_wrappers sqlite3 libedit pcre bzip2 autoconf213 gawk xz m4 gsed libtool libxml2 mhash pkgconfig
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port php5 failed

我该如何解决这个问题?

由于

1 个答案:

答案 0 :(得分:0)

请查看日志文件中的错误消息块:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_readline/readline/main.log

还要确保安装了xcode命令行工具。


仅供参考:我在小牛队遇到了类似的错误。我的情况是:

  • opt是一个安装在/Volumes/opt
  • 中的不同分区
  • /opt是指向/Volumes/opt的符号链接。

通过将/opt/local/etc/macports/macports.conf替换为/opt,在编辑/Volumes/opt后解决了问题。请注意,这可以帮助您解决问题。