[Haskell-cafe] Re: ghc on mac
Christian Maeder
Christian.Maeder at dfki.de
Mon May 26 10:08:06 EDT 2008
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>
More information about the Haskell-Cafe
mailing list