无法在64位Linux上安装Haskell CUDA
在64位Arch Linux上使用cabal安装/构建haskell cuda时遇到问题。据我所知,我有所有的先决条件(即cuda运行时库、nvcc编译器等) 我得到的错误如下:无法在64位Linux上安装Haskell CUDA,linux,haskell,cuda,cabal,Linux,Haskell,Cuda,Cabal,在64位Arch Linux上使用cabal安装/构建haskell cuda时遇到问题。据我所知,我有所有的先决条件(即cuda运行时库、nvcc编译器等) 我得到的错误如下: cabal install cuda [all tests pass] Building cuda-0.5.1.1... Preprocessing library cuda-0.5.1.1... [ 1 of 27] Compiling Foreign.CUDA.Driver.Error ( dist/build/F
cabal install cuda
[all tests pass]
Building cuda-0.5.1.1...
Preprocessing library cuda-0.5.1.1...
[ 1 of 27] Compiling Foreign.CUDA.Driver.Error ( dist/build/Foreign/CUDA/Driver/Error.hs, dist/build/Foreign/CUDA/Driver/Error.o )
[ 2 of 27] Compiling Foreign.CUDA.Internal.Offsets ( dist/build/Foreign/CUDA/Internal/Offsets.hs, dist/build/Foreign/CUDA/Internal/Offsets.o )
[ 3 of 27] Compiling Foreign.CUDA.Internal.C2HS ( Foreign/CUDA/Internal/C2HS.hs, dist/build/Foreign/CUDA/Internal/C2HS.o )
[ 4 of 27] Compiling Foreign.CUDA.Driver.Utils ( dist/build/Foreign/CUDA/Driver/Utils.hs, dist/build/Foreign/CUDA/Driver/Utils.o )
Foreign/CUDA/Driver/Utils.chs:35:23:
Illegal type signature: `IO (Status, Int) cuDriverGetVersion'
Perhaps you intended to use -XScopedTypeVariables
In a pattern type-signature
Failed to install cuda-0.5.1.1
cabal: Error: some packages failed to install:
cuda-0.5.1.1 failed during the building phase. The exception was:
ExitFailure 1
据我所知,这是黑客攻击源的一个错误,但我可能误解了,这是我的机器的一个错误。不管怎样,我应该如何着手修复它?好的,看来(基于)问题实际上是0.16.6版c2hs程序的故障
解决方案是降级到0.16.5版本,然后再尝试安装CUDA
cabal install c2hs-0.16.5
cabal install cuda
降级后,安装进行得非常顺利