Hi&nbsp;Christian, Bob<div>&nbsp;&nbsp; &nbsp; it works fine. As told by bob, I had readlines library missing from my mac. After installing that it is working fine.</div><div><br></div><div>Thanks for help...</div><div><br></div><div>Regards,</div>
<div>Vikrant<br><br><div class="gmail_quote">2008/5/27 Vikrant &lt;<a href="mailto:vikrant.patil@gmail.com">vikrant.patil@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Christian,<div>&nbsp;&nbsp; &nbsp; otool -L gives following output</div><div><br></div><div><div>otool -L &nbsp;/Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2</div><div>/Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2:</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current version 5.2.0)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)</div><div><br></div><div><br></div><div>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.</div>

<div><br></div><div><div>&nbsp;/opt/local/lib/libreadline.5.2.dylib (compatibility version 5.0.0, current version 5.2.0)</div><div>&nbsp;/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)</div></div>

<div><br></div><div><br></div>Regards,</div><div>Vikrant<br><div class="gmail_quote">2008/5/26 Christian Maeder &lt;<a href="mailto:Christian.Maeder@dfki.de" target="_blank">Christian.Maeder@dfki.de</a>&gt;:<div><div></div>
<div class="Wj3C7c"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Vikrant wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sorry I meant it ghc-6.8.2-i386-apple-darwin.tar.bz2. &lt;<a href="http://haskell.org/ghc/dist/6.8.2/maeder/ghc-6.8.2-i386-apple-darwin.tar.bz2" target="_blank">http://haskell.org/ghc/dist/6.8.2/maeder/ghc-6.8.2-i386-apple-darwin.tar.bz2</a>&gt;<br>


</blockquote>
<br>
Are you sure? My binary should try to link against the GNUreadline framework. Which program did you try to link?<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 &nbsp; &nbsp; &nbsp; &nbsp;On 26 May 2008, at 11:51, Vikrant wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hi,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I am trying to install ghc-6.8.2 on mac leopard. I get<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;following error if I try to run ghci<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dyld: Library not loaded: /opt/local/lib/libreadline.5.2.dylib<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Referenced from:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Reason: image not found<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Trace/BPT trap<br>
</blockquote>
<br></div>
What does &quot;otool -L&quot; say to your file /Users/vikrant/Applications/ghc/lib/ghc-6.8.2/ghc-6.8.2<br>
<br>
My output is as below<br>
<br>
Cheers Christian<br>
<br>
m29:ghc-6.8.2 maeder$ otool -L /Users/Shared/maeder/lib/ghc-6.8.2/ghc-6.8.2<br>
/Users/Shared/maeder/lib/ghc-6.8.2/ghc-6.8.2:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;GNUreadline.framework/Versions/A/GNUreadline (compatibility version 5.0.0, current version 5.2.0)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;GMP.framework/Versions/A/GMP (compatibility version 8.0.0, current version 8.1.0)<br>
<br>
m29:ghc-6.8.2 maeder$ ghci -package readline<br>
GHCi, version 6.8.2: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a> &nbsp;:? for help<br>
Loading package base ... linking ... done.<br>
Loading package old-locale-1.0.0.0 ... linking ... done.<br>
Loading package old-time-1.0.0.0 ... linking ... done.<br>
Loading package filepath-1.1.0.0 ... linking ... done.<br>
Loading package directory-1.0.0.0 ... linking ... done.<br>
Loading package unix-2.3.0.0 ... linking ... done.<br>
Loading package process-1.0.0.0 ... linking ... done.<br>
Loading package readline-1.0.1.0 ... linking ... done.<br>
Prelude&gt;<br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>