[Haskell-beginners] Re: Installing hmatrix on OS X

Heinrich Apfelmus apfelmus at quantentunnel.de
Sun Feb 7 05:40:19 EST 2010

Duncan Mortimer wrote:
> Ooops.  Cancel that --- I didn't get any errors on running "cabal
> install", and "hmatrix-" is listed in my ghc-pkg list.
> However, on attempting to run the tests listed on:
> http://sites.google.com/site/wwwhmatrix/installation
> i.e.:  (in ghci):
>> import Numeric.LinearAlgebra.Tests
>> runTests 20
> I get the error:
> ....
> ....
> Loading package hmatrix- ... linking ... <interactive>:
> unknown symbol `_zgemm_'
> ghc: unable to load package `hmatrix-'
> Does anyone have any suggestions as to what's going on now?

Looks like you're missing a function from LAPACK. Did you add

   frameworks: Accelerate


>> Anyway --- the above appears to have worked for me.  I thought I'd
>> send it back to the list in the hopes that it helps someone else.  And
>> if anyone can explain where "extra-include-dirs" should go in the
>> hmatrix.cabal file, please let me know! :)

My bad, the relevant field in the cabal file is called

    include-dirs: /opt/local/include

Heinrich Apfelmus


More information about the Beginners mailing list