当我在我的os x(lion)系统上运行命令sudo port upgrade outdated
时,我得到以下输出。
---> Computing dependencies for gettext
---> Dependencies to be installed: ncurses
---> Activating ncurses @5.9_1
Error: org.macports.activate for port ncurses returned: Image error: /opt/local/bin/captoinfo is being used by the active ncursesw port. Please deactivate this port first, or use 'port -f activate ncurses' to force the activation.
Error: Failed to install ncurses
Please see the log file for port ncurses for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/ncurses/main.log
Error: The following dependencies were not installed: ncurses
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
我该怎么办才能更新?我试图强制激活,但它没有用。
答案 0 :(得分:32)
我自己也有类似的东西 - 不确定它是否相关。见(source):
很久以前,ncursesw被ncurses取代了。您必须没有更新此MacPorts安装 一年多了;如果你早点升级了,这应该会更自动地为你处理,但我们已经 自从很久以前就已经删除了那些升级路径,我们认为每个人都会升级 目前为止。您可以强制ncursesw卸载,因为它不再需要: sudo port -f uninstall ncursesw
也一定要运行
sudo port selfupdate
预先。这可能导致我的问题 - 安装macports不会带来最新的包树。