3

我正在尝试跑步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
4

2 回答 2

1

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

于 2013-07-10T19:19:17.287 回答
1

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

于 2013-11-27T13:32:52.170 回答