20

当我sudo port upgrade outdated在我的 os x (lion) 系统上运行命令时,我得到以下输出。

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

我应该怎么做才能更新?我试图强制激活,但没有成功。

4

1 回答 1

32

我自己也有类似的东西 - 不确定它是否相关。看到这个(来源):

ncursesw 很久以前就被 ncurses 取代了。您必须在一年内没有更新此 MacPorts 安装;如果您更早升级,这应该会更自动地为您处理,但我们已经删除了这些升级路径,因为它是很久以前的,我们认为现在每个人都会升级。您可以强制 ncursesw 卸载,因为它不再需要: sudo port -f uninstall ncursesw

也一定要跑

sudo port selfupdate

预先。这可能导致了我的问题 - 安装 macports 并没有带来最新的包树。

于 2012-06-06T20:09:48.463 回答