【问题标题】:ruby upgrading because of macport update failure由于 macport 更新失败导致 ruby​​ 升级
【发布时间】:2013-07-03 22:21:46
【问题描述】:

我正在尝试运行sudo port selfupdate,我会永久收到此消息

Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

信息:Xcode 的命令行工具和 Xcode 的版本是最新的。为什么会这样?

编辑:

我跑了sudo port -d selfupdate,我得到一个编译错误

Undefined symbols for architecture x86_64:
  "_reg_all_open_entries", referenced from:
      _registry_tcl_detach in registry.o
  "_reg_all_open_files", referenced from:
...

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1
make[2]: *** [registry.dylib] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 2
DEBUG: Error installing new MacPorts base: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

【问题讨论】:

  • 在某个时候,我发现 macports 太脆弱了,于是用 brew...

标签: macos installation macports


【解决方案1】:

我遇到了正确删除macports并继续重新安装的情况,它工作得很好。

【讨论】:

    【解决方案2】:

    您应该更新 Xcode 工具,在此处阅读更多信息: http://www.itechlounge.net/2013/10/mac-macports-selfupdate-failed-on-osx-mavericks/

    【讨论】:

      猜你喜欢
      • 2012-06-05
      • 1970-01-01
      • 2022-09-26
      • 2015-01-10
      • 1970-01-01
      • 2022-09-23
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      相关资源
      最近更新 更多