0

我升级到山狮,现在没有安装端口。我已经使用 dmg 更新了 macports,通过 Xcode 下载了命令行工具,我什至尝试通过从苹果开发者网站下载命令行工具来安装命令行工具。该错误似乎是某处的语法错误(尽管我尝试安装的任何端口都遇到相同的语法错误,因此它似乎并不特定于任何端口)。

:info:configure configure: creating ./config.status
:info:configure config.status: creating install-info/tests/defs
:info:configure nawk: syntax error at source line 1 source file ./confPOrdDb/subs.awk
:info:configure  context is
:info:configure      >>> BEGIN <<<  {
:info:configure nawk: bailing out at source line 321
:info:configure config.status: error: could not create install-info/tests/defs
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/texinfo/work/texinfo-4.13" && ./configure --prefix=/opt/local 
:info:configure Exit code: 1
:error:configure org.macports.configure for port texinfo returned: configure failure: command execution failed
:debug:configure Error code: NONE

如果我sudo ./configure --prefix=/opt/local在源文件夹中运行,我会得到相同的语法错误。有什么想法可以解决这个问题吗?

4

1 回答 1

0

原来安装了不止 1 个版本的 nawk。我摆脱了两者,一切都很好

于 2012-09-09T18:23:30.753 回答