由于macport更新失败而导致ruby升级

时间:2013-07-05 18:52:29

标签: macos installation macports

我正在尝试运行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的版本是uptodate。为什么会这样?

编辑:

我跑了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

2 个答案:

答案 0 :(得分:1)

我当时正在删除正确的macports并继续重新安装,它运行得很好。

答案 1 :(得分:1)

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