【问题标题】:Macports ncurses error when trying to upgrade [closed]尝试升级时Macports ncurses错误[关闭]
【发布时间】:2012-06-07 11:41:08
【问题描述】:

当我在我的 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

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

【问题讨论】:

  • 日志中提到的详细信息显示
  • 这个问题怎么跑题了? MacPorts 是“程序员常用的软件工具”,这是一个“实用的、可回答的问题……编程行业独有的问题”。还是你们五个不认为在 Mac OS X 上工作的程序员是“真正的”程序员? :-)
  • 我也不明白为什么这个问题被关闭了。
  • 那么确定这是“离题”的理由是什么?感谢您发布此问题并感谢@HongPong 正确回答
  • 这当然是话题,因为在使用 rvm 等普通 Ruby 开发工具时会出现此错误,我已投票重新打开它。

标签: macports


【解决方案1】:

我自己也遇到过类似的事情——不确定是否相关。看到这个(source):

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

也一定要跑

sudo port selfupdate

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

【讨论】:

  • 使用预编译的安装程序包安装 MacPorts 确实会带来最新的端口树。 (您可以使用安装程序的显示日志功能来验证它是否正在运行“port selfupdate”,从而下载和索引端口树。)通过从源代码构建来安装 MacPorts 适用于希望对其安装进行更多控制的用户,因此可以不会为您自动同步或自我更新。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-01-07
  • 1970-01-01
  • 2020-06-08
  • 1970-01-01
  • 2019-12-24
相关资源
最近更新 更多