2013-11-23 85 views
0

我在使用MacPorts安装PHP,MySQL和Apache2时遇到问题。目前我的操作系统是小牛,我下载了小牛队官方二进制软件包(也尝试从源代码和运行自更新编译),但我得到这个错误信息:MacPorts失败的安装端口

---> 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 

我该如何解决这个问题?

感谢

回答

0

可否请您在日志文件中检查错误消息块:

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

还要确保Xcode中的命令行工具安装。


FYI:我在面对小牛类似的错误。我的情况是:

  • opt是安装在/Volumes/opt
  • /opt是符号链接到/Volumes/opt不同的分区。

它用/Volumes/opt更换/opt编辑/opt/local/etc/macports/macports.conf后得到解决。请注意,这可以帮助你的情况。