
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 Vikrant

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
You need to install readline using MacPorts. The current binary installer on haskell.org shouldn't need this. How have you been trying to build ghc? Thanks Bob

Hi, I downloaded bz file from haskell.org (
ghc-6.8.2-powerpc-apple-darwin.tar.bz2)http://haskell.org/ghc/dist/6.8.2/maeder/ghc-6.8.2-powerpc-apple-darwin.tar....
After unzipping it I ran
./configure --prefix=<my-dir>
then ran
make install
it installs with no problem but If I try to run it it gives me error as said
in previous mail.
I will try your suggestion...
Regards,
Vikrant
2008/5/26 Thomas Davie
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
You need to install readline using MacPorts.
The current binary installer on haskell.org shouldn't need this. How have you been trying to build ghc?
Thanks
Bob

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
2008/5/26 Vikrant
Hi, I downloaded bz file from haskell.org ( ghc-6.8.2-powerpc-apple-darwin.tar.bz2)http://haskell.org/ghc/dist/6.8.2/maeder/ghc-6.8.2-powerpc-apple-darwin.tar....
After unzipping it I ran
./configure --prefix=<my-dir>
then ran
make install
it installs with no problem but If I try to run it it gives me error as said in previous mail. I will try your suggestion...
Regards, Vikrant
2008/5/26 Thomas Davie
: 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
You need to install readline using MacPorts.
The current binary installer on haskell.org shouldn't need this. How have you been trying to build ghc?
Thanks
Bob

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>

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

Hi Christian, Bob it works fine. As told by bob, I had readlines library
missing from my mac. After installing that it is working fine.
Thanks for help...
Regards,
Vikrant
2008/5/27 Vikrant
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
: 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>
participants (3)
-
Christian Maeder
-
Thomas Davie
-
Vikrant