2009-11-16 19 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