首页 > 解决方案 > 构建coreutils失败:命令执行失败(form macports返回)

问题描述

我正在尝试通过 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.

非常感谢。

标签: macportsgnu-coreutilsphp-zip-archive

解决方案


您提供的信息不足以确定失败的原因,因为所有相关信息已被剥离。

如果您遇到这样的错误,通常的程序是在https://trac.macports.org上打开错误报告并附上完整main.log文件;更好的是,首先检查一个是否已经存在。通过查看https://trac.macports.org/query?0_port=coreutils,它看起来可能是错误#59071,但同时该错误已得到解决,如果不包含更多信息则无法判断。


推荐阅读