[Haskell-cafe] Re: ghc on mac

Vikrant vikrant.patil at gmail.com
Tue May 27 00:44:27 EDT 2008


Hi Christian,     otool -L gives following output

otool -L  /Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2
/Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2:
        /opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0,
current version 5.2.0)
        /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0,
current version 5.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)


out those libraries, I do not have following libraries on my system. I
fighting to get those installed through macports. my guess is it should work
as soon as I install those.

 /opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current
version 5.2.0)
 /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current
version 5.0.0)


Regards,
Vikrant
2008/5/26 Christian Maeder <Christian.Maeder at dfki.de>:

> Vikrant wrote:
>
>> sorry I meant it ghc-6.8.2-i386-apple-darwin.tar.bz2. <
>> http://haskell.org/ghc/dist/6.8.2/maeder/ghc-6.8.2-i386-apple-darwin.tar.bz2
>> >
>>
>
> Are you sure? My binary should try to link against the GNUreadline
> framework. Which program did you try to link?
>
>         On 26 May 2008, at 11:51, Vikrant wrote:
>>
>>            Hi,
>>              I am trying to install ghc-6.8.2 on mac leopard. I get
>>            following error if I try to run ghci
>>
>>            dyld: Library not loaded: /opt/local/lib/libreadline.5.2.dylib
>>             Referenced from:
>>            /Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2
>>             Reason: image not found
>>            Trace/BPT trap
>>
>
> What does "otool -L" say to your file
> /Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2
>
> My output is as below
>
> Cheers Christian
>
> m29:ghc-6.8.2 maeder$ otool -L /Users/Shared/maeder/lib/ghc-6.8.2/ghc-6.8.2
> /Users/Shared/maeder/lib/ghc-6.8.2/ghc-6.8.2:
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 88.3.9)
>        GNUreadline.framework/Versions/A/GNUreadline (compatibility version
> 5.0.0, current version 5.2.0)
>        GMP.framework/Versions/A/GMP (compatibility version 8.0.0, current
> version 8.1.0)
>
> m29:ghc-6.8.2 maeder$ ghci -package readline
> GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
> Loading package base ... linking ... done.
> Loading package old-locale-1.0.0.0 ... linking ... done.
> Loading package old-time-1.0.0.0 ... linking ... done.
> Loading package filepath-1.1.0.0 ... linking ... done.
> Loading package directory-1.0.0.0 ... linking ... done.
> Loading package unix-2.3.0.0 ... linking ... done.
> Loading package process-1.0.0.0 ... linking ... done.
> Loading package readline-1.0.1.0 ... linking ... done.
> Prelude>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080527/262adc6f/attachment.htm


More information about the Haskell-Cafe mailing list