OSX Mountain Lion上的Mac端口错误

时间:2012-08-16 13:19:50

标签: macports osx-mountain-lion

我升级到Mountain Lion,现在没有安装端口。我已经使用dmg更新了macport,通过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,我会得到相同的语法错误。 有任何解决这个问题的想法吗?

1 个答案:

答案 0 :(得分:0)

原来,安装了超过1个版本的nawk。我摆脱了两者,一切都很顺利