ghc-6.6 mac intel "binary bundle"
dgoldsmith at mac.com
Sat Oct 14 11:53:41 EDT 2006
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:
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.
More information about the Glasgow-haskell-users