ghc-6.6 mac intel "binary bundle"

Hi, I'm grateful to whoever prepared the binary bundle for ghc-6.6 on MacOS/Intel, but the instructions for installing it are missing/wrong. In particular, "make install" doesn't do much, and the only binary in the bundle called "ghc" appears to need additional configuration options (-B), so it seems to need some sort of installation procedure. The "INSTALL" file is not useful. Overall, I'm kind of uncertain exactly what this tarball contains. It looks like a "built" copy of the source code, but most of the source code is missing. It's not an installer (.mpkg) nor does it (apparently) contain any install scripts. Could you perhaps update this webpage with an example of the shell commands you might use to get it installed to the point where typing "ghc Foo.hs" works? http://www.haskell.org/ghc/download_ghc_66.html#macosxintel Thanks, - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380

On Oct 13, 2006, at 6:23 PM, Adam Megacz wrote:
I'm grateful to whoever prepared the binary bundle for ghc-6.6 on MacOS/Intel, but the instructions for installing it are missing/wrong.
In particular, "make install" doesn't do much, and the only binary in the bundle called "ghc" appears to need additional configuration options (-B), so it seems to need some sort of installation procedure. The "INSTALL" file is not useful.
"make install" won't do much by itself because the target directories (/usr/local/*) are writable only by root; you need to use "sudo". The following worked fine for me: ./configure make sudo make install I also edited the post-install-script to leave the system libreadline library (really libedit) alone, and only install GNU readline in /usr/ local/*. GHC still works fine with that configuration, and the original Mac OS X libreadline is left around. That way you can still build software that runs on a stock Mac OS X installation (instead of unintentionally introducing a dependency on GNU readline). You can do the same thing by commenting out the three lines in post- install-script that touch /usr/lib/libreadline and /usr/include/ readline/*. As far as I can tell they're not needed. However, if you're not concerned about this issue (e.g. you always require GNU readline for any software you build) you can leave the post-install- script as is, and GHC will work fine. Deborah

Deborah Goldsmith
./configure make sudo make install
Ok, sorry. When I noticed that there was no source code in the bundle, I didn't see the need for running configure/make. I have to admit, I still find it a bit strange... perhaps "standard unix-style binary package" ought to be "precompiled source tree with the source code removed". Thanks for the help! - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380

Here's what worked for me: bunzip2 ghc-6.6-i386-apple-darwin.tar.bz2 tar -xvf ghc-6.6-i386-apple-darwin.tar cd ghc-6.6 ./configure sudo make show-install-setup sudo make install ghc --version The Glorious Glasgow Haskell Compilation System, version 6.6 I'm on a MacBook Pro running OS X 10.4.8. The "make show- install-setup" step doesn't do anything but show you where the files will go when you do "make install," but "make install" worked fine on my machine. -Rod On Oct 13, 2006, at 7:23 PM, Adam Megacz wrote:
Hi,
I'm grateful to whoever prepared the binary bundle for ghc-6.6 on MacOS/Intel, but the instructions for installing it are missing/wrong.
In particular, "make install" doesn't do much, and the only binary in the bundle called "ghc" appears to need additional configuration options (-B), so it seems to need some sort of installation procedure. The "INSTALL" file is not useful.
Overall, I'm kind of uncertain exactly what this tarball contains. It looks like a "built" copy of the source code, but most of the source code is missing. It's not an installer (.mpkg) nor does it (apparently) contain any install scripts.
Could you perhaps update this webpage with an example of the shell commands you might use to get it installed to the point where typing "ghc Foo.hs" works?
http://www.haskell.org/ghc/download_ghc_66.html#macosxintel
Thanks,
- a
-- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (3)
-
Adam Megacz
-
Deborah Goldsmith
-
Rodney D Price