我在 Mac 10.6.4 上成功安装了 MacPorts,但无法安装 lua。我知道 MacPorts 已安装,因为我可以从管理员帐户成功执行“port selfupdate”和“port search lua”。但当我执行“sudo port install lua”时,出现错误:
----------------------------------------------------------------------------
bash-3.2$ sudo port install lua
---> Computing dependencies for lua
---> Dependencies to be installed: readline ncurses ncursesw
---> Configuring ncursesw
Error: Target org.macports.configure returned: configure failure: shell command failed
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log
Error: The following dependencies failed to build: readline ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
bash-3.2$
----------------------------------------------------------------------------
我做错了什么?或者做得不够?
答案1
仅从这条消息无法看出哪里出了问题。到目前为止,安装端口 ncursesw 一直失败。运行sudo port clean ncursesw
并保存 的输出sudo port -d configure ncursesw
。-d
用于调试并提供有关构建端口的所有幕后信息。在这里发布可能太长了,但查看哪个 shell 命令对您失败会很有帮助。