macos - 由于 macport 更新失败,ruby 升级

标签 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 的版本是最新的。为什么会这样?

编辑:

我运行 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 并继续重新安装的情况,它工作得很好。

关于macos - 由于 macport 更新失败,ruby 升级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17495235/

相关文章:

python - OpenCV 2.0 与 MacPorts 的 SWIG Python 绑定(bind)

python - easy_install 和 macports 未安装到 Mac OS X 10.8 上正确的 Python 版本

c++ - 使用 Xcode 嵌入 Lua

r - RHive安装:rhive.connect中的错误

Eclipse C++ for Mac Unresolved 错误

sql - 在 Windows Server 2003 企业版上并排安装 SQL Server 2008 R2 和 MySQL 是否安全?

php - 在离线linux服务器上安装joomla 3尚未完成

macports - 指示 Macports 下载但不安装端口的依赖项

bash - 无法在mac中打开终端

c++ - OSX 中的 Mongodb connect() 段错误