gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 02:00:27 26 4
gpt4 key购买 nike

我正在尝试运行 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com