Re: ghc 6.6 for mac os x (intel)

[redirecting to the list]
On 2/5/07, Ariel Apostoli
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: http://haskell.org/ghc/download_ghc_66.html#macosxintel 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 -- Kirsten Chevalier* chevalier@alum.wellesley.edu *Often in error, never in doubt "just thinking of a series of dreams" -- Bob Dylan

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
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: http://haskell.org/ghc/download_ghc_66.html#macosxintel
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

On Tue, Feb 06, 2007 at 09:15:32AM -0600, Ariel Apostoli wrote:
Kirsten Chevalier 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
Are you using http://haskell.org/ghc/dist/6.6/ghc-6.6-i386-apple-darwin.tar.bz2 ? I've just downloaded it, and it looks like the Makefile should run post-install-script to put readline/* in the right place. Can you check if that is happening correctly? Thanks Ian

I can confirm that the version of ghc in MacPorts installs perfectly (on a clean system): $ sudo port install ghc On 06/02/2007, at 17:35, Ian Lynagh wrote:
On Tue, Feb 06, 2007 at 09:15:32AM -0600, Ariel Apostoli wrote:
Kirsten Chevalier 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
Are you using http://haskell.org/ghc/dist/6.6/ghc-6.6-i386-apple-darwin.tar.bz2 ?
I've just downloaded it, and it looks like the Makefile should run post-install-script to put readline/* in the right place. Can you check if that is happening correctly?
Thanks Ian
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Hello Ian, Ian Lynagh wrote:
Are you using http://haskell.org/ghc/dist/6.6/ghc-6.6-i386-apple-darwin.tar.bz2 ?
Yes.
I've just downloaded it, and it looks like the Makefile should run post-install-script to put readline/* in the right place. Can you check if that is happening correctly?
the post-install script is not exactly happy; here is what i get when it starts running: Running project-specific post-install script ... ==> Regenerating library archive headers... ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Types_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Atom_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Event_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Font_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Misc_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11.a(Types_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Types_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Atom_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Event_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Font_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Misc_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSX11_p.a(Types_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSbase.a(CPUTime_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSbase.a(Time_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSbase_cbits.a(timeUtils.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSbase_p.a(CPUTime_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSbase_p.a(Time_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSnetwork.a(BSD_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSnetwork.a(Socket_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSnetwork_p.a(BSD_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSnetwork_p.a(Socket_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSreadline.a(Readline_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSreadline_p.a(Readline_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSregex-posix.a(Wrap_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSregex-posix_p.a(Wrap_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Disassembler.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(FrontPanel.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(LdvProfile.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ProfHeap.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Profiling.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Proftimer.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(RetainerProfile.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(RetainerSet.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Sanity.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ThreadLabels.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Ticky.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(InitEachPE.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ShutdownEachPEHook.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(0Hash.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(0Unpack.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Dist.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Global.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(GranSim.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(HLComms.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(LLComms.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Pack.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ParInit.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ParTicky.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(Parallel.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(ParallelDebug.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts.a(RBH.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Disassembler.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(FrontPanel.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Sanity.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(ThreadLabels.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Ticky.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(InitEachPE.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(ShutdownEachPEHook.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(0Hash.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(0Unpack.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Dist.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Global.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(GranSim.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(HLComms.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(LLComms.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Pack.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(ParInit.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(ParTicky.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(Parallel.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(ParallelDebug.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_p.a(RBH.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Disassembler.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(FrontPanel.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(LdvProfile.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ProfHeap.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Profiling.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Proftimer.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(RetainerProfile.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(RetainerSet.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Sanity.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ThreadLabels.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Ticky.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(InitEachPE.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ShutdownEachPEHook.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(0Hash.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(0Unpack.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Dist.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Global.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(GranSim.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(HLComms.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(LLComms.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Pack.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ParInit.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ParTicky.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Parallel.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(ParallelDebug.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(RBH.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr.a(Select.thr_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Disassembler.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(FrontPanel.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Sanity.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(ThreadLabels.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Ticky.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(InitEachPE.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(ShutdownEachPEHook.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(0Hash.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(0Unpack.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Dist.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Global.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(GranSim.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(HLComms.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(LLComms.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Pack.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(ParInit.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(ParTicky.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Parallel.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(ParallelDebug.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(RBH.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSrts_thr_p.a(Select.thr_p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Directory_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Module_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Prim_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(DynamicLinker_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Env_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Files_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(IO_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Process_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Resource_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Exts_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Temp_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Terminal_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Time_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(Unistd_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix.a(User_hsc.o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Directory_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Module_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Prim_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(DynamicLinker_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Env_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Files_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(IO_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Process_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Resource_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Exts_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Temp_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Terminal_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Time_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(Unistd_hsc.p_o) has no symbols ranlib: file: /usr/local/lib/ghc-6.6/libHSunix_p.a(User_hsc.p_o) has no symbols ==> Done! Done ======================================================================= Installation of ghc-6.6 was successful. To use, add /usr/local/bin to your PATH. Warning: this binary distribution does NOT contain documentation! ======================================================================= Any ideas? Thanks again! Ariel

Hi Ariel, Sorry for the delayed response. On Tue, Feb 06, 2007 at 12:07:46PM -0600, Ariel Apostoli wrote:
Are you using http://haskell.org/ghc/dist/6.6/ghc-6.6-i386-apple-darwin.tar.bz2 ?
Yes.
I've just downloaded it, and it looks like the Makefile should run post-install-script to put readline/* in the right place. Can you check if that is happening correctly?
the post-install script is not exactly happy; here is what i get when it starts running:
[snipped] I'm not sure what output is expected, but your earlier message http://www.haskell.org/pipermail/glasgow-haskell-users/2007-February/011962.... suggested that there is no file /opt/local/lib/libreadline.5.1.dylib whereas post-install-script certainly looks like it will put something there. Can you confirm whether or not the file is there, and whether you are still getting the same error please? Thanks Ian

Hi Ian, Thanks so much for trying to help out. You are right, that readline file is not there so I installed it from MacPorts and made a symbolic link to the installed location. Now everything is fine. Thanks again! Ariel Ian Lynagh wrote:
Hi Ariel,
Sorry for the delayed response.
On Tue, Feb 06, 2007 at 12:07:46PM -0600, Ariel Apostoli wrote:
Are you using http://haskell.org/ghc/dist/6.6/ghc-6.6-i386-apple-darwin.tar.bz2 ?
Yes.
I've just downloaded it, and it looks like the Makefile should run post-install-script to put readline/* in the right place. Can you check if that is happening correctly?
the post-install script is not exactly happy; here is what i get when it starts running:
[snipped]
I'm not sure what output is expected, but your earlier message http://www.haskell.org/pipermail/glasgow-haskell-users/2007-February/011962.... suggested that there is no file /opt/local/lib/libreadline.5.1.dylib whereas post-install-script certainly looks like it will put something there. Can you confirm whether or not the file is there, and whether you are still getting the same error please?
Thanks Ian

I installed the darwin ports readline and created the following soft link: /usr/local/lib/libreadline.5.1.dylib -> /opt/local/lib/libreadline. 5.1.dylib Alternatively, you could install the darwin ports readline and set the DYLD_LIBRARY_PATH variable. I prefer not to use DYLD_LIBRARY_PATH. -reilly 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
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: http://haskell.org/ghc/download_ghc_66.html#macosxintel
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@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Hello, On Tuesday 06 February 2007 16:15, 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 ...
On my Mac OS X 10.4, I get the same reaction when the readline that I installed from darwin ports is deactivated. So perhaps readline isn't installed? Or is deactivated? In that case, the suggested cure is sudo port install readline (The readline that comes with Mac OS X 10.4 is no good, as noted by several.) Best regards Thorkil
participants (6)
-
Ariel Apostoli
-
Ian Lynagh
-
Kirsten Chevalier
-
Pepe Iborra
-
Reilly Hayes
-
Thorkil Naur