[Haskell-beginners] Installing hmatrix on OS X
dmorti at gmail.com
Sat Feb 6 07:26:38 EST 2010
Following Heinrich's advice (thanks), I found the following worked:
change "build-type: Custom" to "build-type: Simple"
and at the end of hmatrix.cabal:
change "extra-libraries:" to "extra-libraries: gsl"
"extra-lib-dirs: " to "extra-lib-dirs: /opt/local/lib/"
Then at the command line run:
cabal --extra-include-dirs=/opt/local/include configure
cabal --extra-include-dirs=/opt/local/include install
I couldn't work out how to put the extra-include-dirs details into the
hmatrix.cabal file --- I kept getting the error "Warning:
hmatrix.cabal: Unknown fields: extra-include-dirs".
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! :)
On Sat, Feb 6, 2010 at 6:52 PM, Lyndon Maydwell <maydwell at gmail.com> wrote:
> I'm having a similar error when trying to install HMatrix on OS X as
> well. Interested if anyone can find a solution.
> On Sat, Feb 6, 2010 at 11:25 AM, Duncan Mortimer <dmorti at gmail.com> wrote:
>> Hi all,
>> I'm trying to install the easyVision library on OS X, following the
>> notes at http://mit.edu/harold/Public/easyVisionNotes.html.
>> However, despite a few hours web trawling and hacking away with
>> various cabal options, I can't get "hmatrix" to install. I'm using OS
>> X 10.5.8 with GHC 6.10.4. I installed gsl using macports, as
>> suggested in the notes above, but cabal doesn't seem to be able to
>> find it. The error I'm getting is:
>> [13:22:35 dmorti hmatrix-0.8.2.0]$ cabal install hmatrix
>> Resolving dependencies...
>> [1 of 1] Compiling Main (
>> Linking /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/setup
>> Configuring hmatrix-0.8.2.0...
>> Checking foreign libraries... FAIL
>> *** Sorry, I can't link GSL.
>> *** Please make sure that the appropriate -dev packages are installed.
>> *** You can also specify the required libraries using
>> *** cabal install hmatrix --configure-option=link:lib1,lib2,lib3,etc.
>> setup: Package hmatrix-0.8.2.0 can't be built on this system.
>> cabal: Error: some packages failed to install:
>> hmatrix-0.8.2.0 failed during the building phase. The exception was:
>> exit: ExitFailure 1
>> It appears that others have also had this error, but have been able to
>> fix it up by including "--extra-lib-dirs" and "--extra-include-dirs"
>> options, or using "ld-options: -framework vecLib". I've tried both of
>> these approaches, but still get the same errors.
>> Can anyone offer any suggestions?
>> Thanks very much for your help,
>> Duncan Mortimer
>> Beginners mailing list
>> Beginners at haskell.org
More information about the Beginners