我在 Mac OS X Mountain Lion 上使用 MacPorts。这个问题已经存在一年了:每当我升级 MacPorts 时:
sudo port selfupdate
看起来运行正常。但是运行之后:
sudo port upgrade outdated
它总是在 gettext 时失败:
Error: org.macports.activate for port gettext returned:
Error: Failed to install gettext
Please see the log file for port gettext for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
Error: The following dependencies were not installed: gettext
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
然后如果我运行任何port
命令,我就会得到:
dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
Referenced from: /bin/sh
Reason: image not found
幸运的是,我还有另一台 Mac,所以通常如果我从那里复制相同的 dylib,之后就会没问题。
我不相信这是一个已经存在多年的错误。一定是我做错了什么。问题是什么?