blas: ghc-6.8.2: unable to load package `blas-0.4'

Patric, I am trying to use your blas package, but I am getting a missing symbol error.
import Data.Matrix.Dense.IO mm::(IOMatrix (Int,Int) Double) <- newListMatrix (1,1) [1.0] Loading package storable-complex-0.1 ... linking ... done. Loading package ieee-0.1 ... linking ... done. Loading package old-locale-1.0.0.0 ... linking ... done. Loading package old-time-1.0.0.0 ... linking ... done. Loading package random-1.0.0.0 ... linking ... done. Loading package QuickCheck-1.1.0.0 ... linking ... done. Loading package blas-0.4 ... linking ... <interactive>: /usr/lib/blas-0.4/ghc-6.8.2/HSblas-0.4.o: unknown symbol `cblas_ddot' ghc-6.8.2: unable to load package `blas-0.4'
any ideas what i am missing? Thanks, Anatoly

aeyakovenko:
Patric,
I am trying to use your blas package, but I am getting a missing symbol error.
import Data.Matrix.Dense.IO mm::(IOMatrix (Int,Int) Double) <- newListMatrix (1,1) [1.0] Loading package storable-complex-0.1 ... linking ... done. Loading package ieee-0.1 ... linking ... done. Loading package old-locale-1.0.0.0 ... linking ... done. Loading package old-time-1.0.0.0 ... linking ... done. Loading package random-1.0.0.0 ... linking ... done. Loading package QuickCheck-1.1.0.0 ... linking ... done. Loading package blas-0.4 ... linking ... <interactive>: /usr/lib/blas-0.4/ghc-6.8.2/HSblas-0.4.o: unknown symbol `cblas_ddot' ghc-6.8.2: unable to load package `blas-0.4'
any ideas what i am missing?
Missing -lcblas perhaps? The C library isn't being found. -- Don

/usr/lib/blas-0.4/ghc-6.8.2/HSblas-0.4.o: unknown symbol `cblas_ddot' ghc-6.8.2: unable to load package `blas-0.4'
any ideas what i am missing?
Missing -lcblas perhaps? The C library isn't being found.
$ ll /usr/lib/libcblas.* lrwxrwxrwx 1 root root 25 Jun 10 20:57 /usr/lib/libcblas.a -> blas/reference/libcblas.a lrwxrwxrwx 1 root root 26 Jun 10 20:57 /usr/lib/libcblas.so -> blas/reference/libcblas.so lrwxrwxrwx 1 root root 28 Jun 10 20:57 /usr/lib/libcblas.so.0 -> blas/reference/libcblas.so.0 I think its installed correctly, $ nm /usr/lib/libcblas.* | grep cblas_ddot cblas_ddot.o: 00000000 T cblas_ddot nm: /usr/lib/libcblas.so: no symbols nm: /usr/lib/libcblas.so.0: no symbols

On Tue, 2008-06-10 at 21:38 -0700, Anatoly Yakovenko wrote:
nevermind, i am a little slow today. ghci -lcblas
You should not need to do this manually. The blas package should say that it needs this library, in which case ghc and ghci will pick it up automatically. Using "ghci -package foo" is supposed to "Just Work"tm. If it doesn't then that's generally the fault of the package. Duncan
participants (3)
-
Anatoly Yakovenko
-
Don Stewart
-
Duncan Coutts