我正在尝试通过macports将php-zip安装到我的macOS上。
sudo port install php73-zip
然后 Macports 返回以下消息:
The following dependencies will be installed:
coreutils
...
...
Error: Failed to build coreutils: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/main.log for details.
然后我检查了日志,错误我不知道问题出在哪里。
这是日志的一部分。
:error:build Failed to build coreutils: command execution failed
:debug:build Error code: CHILDSTATUS 7693 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/main.log for details.
非常感谢。 🙏
您提供的信息不足以确定失败的原因,因为所有相关信息都已被剥离。
如果您遇到这样的错误,通常的过程是在 https://trac.macports.org 上打开错误报告并附加完整的main.log
文件;更好的是,首先检查是否已存在一个。通过查看 https://trac.macports.org/query?0_port=coreutils 看起来可能是错误#59071,但在此期间解决了错误,如果不包含更多信息,就无法判断。