ghc 6.6 for mac os x (intel)

Reilly Hayes rfh at
Tue Feb 6 11:53:14 EST 2007

I installed the darwin ports readline and created the following soft  

/usr/local/lib/libreadline.5.1.dylib -> /opt/local/lib/libreadline. 

Alternatively, you  could install the darwin ports readline and set  
the DYLD_LIBRARY_PATH variable.  I prefer not to use DYLD_LIBRARY_PATH.


On Feb 6, 2007, at 7:15 AM, Ariel Apostoli wrote:

> but when I try installing ghc from that page it seems to install  
> fine but when I invoke /usr/local/bin/ghc i get:
> dyld: Library not loaded: /opt/local/lib/libreadline.5.1.dylib
>  Referenced from: /usr/local/lib/ghc-6.6/ghc-6.6
>  Reason: image not found
> Trace/BPT trap
> My version of mac os x is 10.4.8
> Again thanks for your time and help so far!
> Ariel
> Kirsten Chevalier wrote:
>> [redirecting to the list]
>> On 2/5/07, Ariel Apostoli <apostoli at> wrote:
>>> Hello Kirsten,
>>> Thanks so much for your time and help so far. However, I am still  
>>> stuck
>>> on the issue when I try to do this:
>>> ./configure --with-readline-includes=/usr/local     \
>>>                   --with-readline-libraries=/usr/local
>>> I get:
>>> checking build system type... i686-apple-darwin8.8.1
>>> checking host system type... i686-apple-darwin8.8.1
>>> checking target system type... i686-apple-darwin8.8.1
>>> Canonicalised to: i386-apple-darwin
>>> checking for path to top of build tree... /Users/ariel/work/ghc/ 
>>> ghc-6.6
>>> checking for ghc... no
>>> checking for ghc-pkg matching ... no
>>> checking for ghc-pkg... no
>>> checking whether ghc has readline package... no
>>> checking for nhc... no
>>> checking for nhc98... no
>>> checking for hbc... no
>>> configure: error: GHC is required unless bootstrapping from .hc  
>>> files.
>>> Do you know what should I do to avoid this?
>> Do you already have a binary version of GHC installed? If you want to
>> build GHC from source, you need a binary of GHC installed already,
>> like the error message suggests. (Unless you want to bootstrap from
>> .hc files, but I've never done that, so I don't know.)
>> See:
>> You didn't say what version of Mac OS X you were using; if it's
>> anything older than 10.3, you're probably SOL.
>> Cheers,
>> Kirsten
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at

More information about the Glasgow-haskell-users mailing list