0
我試圖在Mac OS X 10.7.5上安裝cabal的cuda軟件包。haskell安裝了haskell平臺64位mac版本。 ghc版本是7.6.3,gcc版本是4.2。在Mac OS X 10.7.5中安裝cuda模塊時出錯(檢查C編譯器是否工作正常)
>> cabal install cuda
Resolving dependencies...
[1 of 1] Compiling Main (/var/folders/ng/h2hkycqd2q5g2hz42c47bt4w0000gn/T/cuda-0.5.1.1-59169/cuda-0.5.1.1/Setup.hs, /var/folders/ng/h2hkycqd2q5g2hz42c47bt4w0000gn/T/cuda-0.5.1.1-59169/cuda-0.5.1.1/dist/setup/Main.o)
Linking /var/folders/ng/h2hkycqd2q5g2hz42c47bt4w0000gn/T/cuda-0.5.1.1-59169/cuda-0.5.1.1/dist/setup/setup ...
Configuring cuda-0.5.1.1...
checking for gcc... cc -arch i386 /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/ng/h2hkycqd2q5g2hz42c47bt4w0000gn/T/cuda-0.5.1.1-59169/cuda-0.5.1.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
Failed to install cuda-0.5.1.1
cabal: Error: some packages failed to install:
cuda-0.5.1.1 failed during the configure step. The exception was:
ExitFailure 77
當我安裝64位版本的haskell時,似乎gbit的32位體系結構被調用。
什麼可能是錯誤的?
可能重複(HTTP:/ /stackoverflow.com/questions/8890030/install-cuda-for-haskell-using-autoconf-on-win7) – talonmies