0

Trying to install the Miscellaneous Package into Octave, I get this string of errors:

octave-3.2.3:17> pkg install miscellaneous-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. the configure script returned the following error: checking for gcc... gcc checking for C compiler default output file name... error: called from `pkg>configure_make in file /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m near line 1240, column 2 error: called from: error:
/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m at line 714, column 5 error:
/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m at line 287, column 7

What is this trying to tell me? Where should I go?

Mike Briggs

4

1 に答える 1

0

関連があるかどうかはわかりませんが、事前にパッケージ化された Octave.app バージョン 3.2.3 を使用している場合は、ファイル Octave.app/Contents/Resources/bin/mkoctfile-3.2.3 を再構成して、インストールされたパッケージをビルドする必要があります。 64ビットではなく32ビット...

解決策は、次のスニペットを追加することです

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

ファイル Octave.app/Contents/Resources/bin/mkoctfile-3.2.3 の「set -e」行の直後。問題は、Octave に同梱されているライブラリが 32 ビットであるのに対し、Snow Leopard のコンパイラは常に 64 ビットでビルドしようとすることでした。-m32 フラグは、コンパイラに 32 ビット
プログラムのビルドを強制します。- グイド

元の投稿

于 2010-01-28T04:33:40.780 に答える