2009-11-16 23 views
0

试图将其他软件包安装到八度,我得到这个字符串的错误:“OS X” +倍频+其他套餐:安装错误

倍频3.2.3:17> PKG安装杂-1.0.9 .tar.gz configure:error:in /var/folders/0o/0ox7a-rlFVGd8pZnuF96sE+++TM/-Tmp-/oct-zTlMUh/miscellaneous-1.0.9/src': configure: error: C compiler cannot create executables See config.log'for more details。 configure脚本返回以下错误:检查gcc ... gcc 检查C编译器的默认输出文件名... 错误:从文件/Applications/Octave.app/Contents/Resources中的`pkg> configure_make'调用/share/octave/3.2.3/m/pkg/pkg.m在第1240行第2列 错误:调用自: 错误:/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/ m/pkg/pkg.m第714行第5列 错误:/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m第287行第7列

这是想告诉我什么?我应该去哪儿?

迈克·布里格斯

+0

的重要组成部分,似乎是“错误:C编译器不能创建可执行文件”。 **您是否安装了编译器?**它附带有开发人员工具(以及Xcode)。在安装DVD上查找它或从Apple下载(您可能需要regerister免费下载Apple Developer Connection帐户)。 – 2009-11-16 04:51:28

回答

0

我不知道它是相关的,但如果你使用的是预包装Octave.app 3.2.3版,你需要重新配置文件Octave.app/Contents/Resources/bin/mkoctfile-3.2 0.3,使其将建设安装的软件包中的32位,而不是64位?

The solution is to add the following snippet

CFLAGS="-m32 ${CFLAGS}" 
FFLAGS="-m32 ${FFLAGS}" 
CPPFLAGS="-m32 ${CPPFLAGS}" 
CXXFLAGS="-m32 ${CXXFLAGS}" 
LDFLAGS="-m32 ${LDFLAGS}" 

in the file Octave.app/Contents/Resources/bin/mkoctfile-3.2.3 just after the "set -e" line. The problem was that in Snow Leopard compilers try always to build in 64bit, while libraries shipped with Octave are 32 bit. The -m32 flag forces the compiler to build 32bit
programs. - Guido

Original Post

+0

我很抱歉回答这么长时间。要么这些警报没有发送到我的收件箱,要么我只是简单地错过了它们。本和克里斯,谢谢你的回应。在决赛结束后我会尝试一下这个片段,然后回报。 - 迈克布里格斯 – 2010-06-08 16:03:22