[Haskell-cafe] hmatrix on os x
brian
briand at aracnet.com
Sat Sep 12 01:18:43 EDT 2009
Hi,
yep - that's the problem I had.
run cabal with the -v (verbose option)
cabal install -v
so you can see exactly where it's failing
try the following :
--extra-lib-dirs=PATH
where PATH was (for me) was /sw/lib
I'm not sure but I may have had to use --extra-include-dirs also.
Generally I have a lot of trouble with cabal installing things
properly using the mac, but the above options usually fix the problem.
I did get hmatrix working. Then when I ran a an example which did a
simple vector operation, it segfaulted. However the linear algebra
routines all seemed to work. Let me know what happens.
The linux pc gave me even more problems which I eventually traced to
LD_LIBRARY_PATH needing to include the lib dirs.
HTH.
Brian
On Sep 9, 2009, at 11:57 PM, Martijn van Steenbergen wrote:
> brian wrote:
>> yep I had some trouble too, although interestingly less than on
>> linux pc.
>> can you provide some error messages and we can see if your problems
>> are the same one's I saw.
>
> If this helps, here is the error message I got:
>
> Configuring hmatrix-0.5.2.2...
> 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.5.2.2 can't be built on this system.
> cabal: Error: some packages failed to install:
> hmatrix-0.5.2.2 failed during the building phase. The exception was:
> exit: ExitFailure 1
>
> M.
More information about the Haskell-Cafe
mailing list