2013-11-23 45 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後得到解決。請注意,這可以幫助你的情況。