nntpnews.net

Global Usenet Archiver


Register

[Haskell-beginners] Installing hmatrix on OS X

Reply

  #1  
Old 06-02-10, 03:26 AM
Duncan Mortimer
 
Posts: n/a
Default [Haskell-beginners] Installing hmatrix on OS X

Hi all,

I'm trying to install the easyVision library on OS X, following the
notes at
Code:
Content visible to registered users only.
.

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 (
/var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/Setup.lhs,
/var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/Main.o
)
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
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
  #2  
Old 06-02-10, 08:52 AM
Lyndon Maydwell
 
Posts: n/a
Default Re: [Haskell-beginners] Installing hmatrix on OS X

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@gmail.com> wrote:
> Hi all,
>
> I'm trying to install the easyVision library on OS X, following the
> notes at
Code:
Content visible to registered users only.
.
>
> 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 Â* Â* Â* Â* Â* Â* (
> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/Setup.lhs,
> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/Main.o
> )
> 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
>
Code:
Content visible to registered users only.
>
Code:
Content visible to registered users only.
>

_______________________________________________
Beginners mailing list
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
  #3  
Old 06-02-10, 10:35 AM
Heinrich Apfelmus
 
Posts: n/a
Default [Haskell-beginners] Re: Installing hmatrix on OS X

Duncan Mortimer wrote:
> I'm trying to install the easyVision library on OS X, following the
> notes at
Code:
Content visible to registered users only.
.
>
> 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 (
> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/Setup.lhs,
> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/Main.o
> )
> 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?


hmatrix uses a custom configure script which I think is supposed to
make live easier for Linux users. Unfortunately, it doesn't work on
MacOS X; you have to deactivate it. If I remember correctly, you can do
this with changing the build type to

build-type: Simple

in the cabal file. Then, add the relevant libraries

extra-lib-dirs: /opt/local/lib/
extra-include-dirs: /opt/local/include/
extra-libraries: gsl
framework: Accelerate
-- or framework: vecLib for earlier versions of MacOS X

and off you go.


Regards,
Heinrich Apfelmus

--
Code:
Content visible to registered users only.
_______________________________________________
Beginners mailing list
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
  #4  
Old 06-02-10, 12:27 PM
Duncan Mortimer
 
Posts: n/a
Default Re: [Haskell-beginners] Installing hmatrix on OS X

Hi All,

Following Heinrich's advice (thanks), I found the following worked:

in hmatrix.cabal:

change "build-type: Custom" to "build-type: Simple"

and at the end of hmatrix.cabal:

change "extra-libraries:" to "extra-libraries: gsl"
and
"extra-lib-dirs: " to "extra-lib-dirs: /opt/local/lib/"

Then at the command line run:

cabal --extra-include-dirs=/opt/local/include configure

followed by

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!

best,
Duncan


On Sat, Feb 6, 2010 at 6:52 PM, Lyndon Maydwell <maydwell@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@gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to install the easyVision library on OS X, following the
>> notes at
Code:
Content visible to registered users only.
.
>>
>> 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 * * * * * * (
>> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/Setup.lhs,
>> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/Main.o
>> )
>> 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
>>
Code:
Content visible to registered users only.
>>
Code:
Content visible to registered users only.
>>

>

_______________________________________________
Beginners mailing list
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
  #5  
Old 06-02-10, 12:32 PM
Duncan Mortimer
 
Posts: n/a
Default Re: [Haskell-beginners] Installing hmatrix on OS X

Ooops. Cancel that --- I didn't get any errors on running "cabal
install", and "hmatrix-0.8.2.0" is listed in my ghc-pkg list.
However, on attempting to run the tests listed on:

Code:
Content visible to registered users only.
i.e.: (in ghci):

> import Numeric.LinearAlgebra.Tests
> runTests 20


I get the error:

...
...
Loading package hmatrix-0.8.2.0 ... linking ... <interactive>:
unknown symbol `_zgemm_'
ghc: unable to load package `hmatrix-0.8.2.0'

Does anyone have any suggestions as to what's going on now?

Thanks,
Duncan


On Sat, Feb 6, 2010 at 10:26 PM, Duncan Mortimer <dmorti@gmail.com> wrote:
> Hi All,
>
> Following Heinrich's advice (thanks), I found the following worked:
>
> in hmatrix.cabal:
>
> change "build-type: Custom" to "build-type: Simple"
>
> and at the end of hmatrix.cabal:
>
> change "extra-libraries:" * to * "extra-libraries: gsl"
> and
> "extra-lib-dirs: " *to * "extra-lib-dirs: /opt/local/lib/"
>
> Then at the command line run:
>
> cabal --extra-include-dirs=/opt/local/include configure
>
> followed by
>
> 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!
>
> best,
> Duncan
>
>
> On Sat, Feb 6, 2010 at 6:52 PM, Lyndon Maydwell <maydwell@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@gmail.com> wrote:
>>> Hi all,
>>>
>>> I'm trying to install the easyVision library on OS X, following the
>>> notes at
Code:
Content visible to registered users only.
.
>>>
>>> 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 * * * * * * (
>>> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/Setup.lhs,
>>> /var/folders/05/05Ltg9vxE+a1hR422nbuE++++TI/-Tmp-/hmatrix-0.8.2.05810/hmatrix-0.8.2.0/dist/setup/Main.o
>>> )
>>> 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
>>>
Code:
Content visible to registered users only.
>>>
Code:
Content visible to registered users only.
>>>

>>

>

_______________________________________________
Beginners mailing list
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
  #6  
Old 07-02-10, 10:40 AM
Heinrich Apfelmus
 
Posts: n/a
Default [Haskell-beginners] Re: Installing hmatrix on OS X

Duncan Mortimer wrote:
> Ooops. Cancel that --- I didn't get any errors on running "cabal
> install", and "hmatrix-0.8.2.0" is listed in my ghc-pkg list.
> However, on attempting to run the tests listed on:
>
>
Code:
Content visible to registered users only.
>
> i.e.: (in ghci):
>
>> import Numeric.LinearAlgebra.Tests
>> runTests 20

>
> I get the error:
>
> ....
> ....
> Loading package hmatrix-0.8.2.0 ... linking ... <interactive>:
> unknown symbol `_zgemm_'
> ghc: unable to load package `hmatrix-0.8.2.0'
>
> 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

too?

>> 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


Regards,
Heinrich Apfelmus

--
Code:
Content visible to registered users only.
_______________________________________________
Beginners mailing list
Code:
Content visible to registered users only.
Code:
Content visible to registered users only.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Haskell-beginners] Installing packages in Ubuntu Glurk fa.haskell 3 08-11-09 08:20 PM
[Haskell-cafe] hmatrix on os x Ben fa.haskell 4 12-09-09 06:19 AM
[Haskell-beginners] problem cabal install'ing hmatrix Erik Quaeghebeur fa.haskell 5 27-04-09 11:05 PM
[Haskell-beginners] Installing packages Tymur Porkuian fa.haskell 5 08-02-09 11:27 PM
[Haskell-beginners] Installing Gtk2hs Colin Paul Adams fa.haskell 6 01-12-08 02:34 AM


All times are GMT +1. The time now is 09:24 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0



For ads on this site use independent advertising companies. These companies may use some data (which does not include your name, address, email address or telephone number) about your visits to this and other websites to create advertisements on products and services you might enjoy. If you'd like more information and to know the options available to prevent the use of such information by these companies, click here

Abuse Ticket System