flxldn.

the original snub

Feb 21, 2010 7:16am
buildable: True -

The installation of the haskell package hmatrix (a wrapper for the excellent gnu scientific library gsl) has given me a lot of grief in the past - it mostly refused to recognise installed versions of gsl, LAPACK, veclib while these were clearly installed. This simple hack made it possible to install the current version hmatrix-0.8.3.1:

Ensure the following lines are in your hmatrix.cabal file (and are read for your set of options):

extra-lib-dirs: /sw/lib/
include-dirs: /sw/include/
extra-libraries: gsl
frameworks: Accelerate

(You might have to change /sw/lib/ to /opt/local/lib/ and equivalent for /sw/include/, depending if you have gsl installed through fink or macports.)

Then run:

runhaskell Setup.lhs configure

In my case this tells me that I can’t install. BUT: if you edit hmatrix.buildinfo to contain

buildable: True

it builds and installs. All tests pass. Oh well - I hope it is just an overzealous configure script.

p.s.: building and installing is done by

runhaskell Setup.lhs build
runhaskell Setup.lhs install
Page 1 of 1