Installing Haskell on Lion with Homebrew...

Hi, I'd like to start using Haskell on my OS/X Lion system. In preparation I've installed 10.7.3 and the latest XCode. I've also installed the XCode command line tools. I'm using Homebrew and run "brew doctor" first to make sure Homebrew is happy. Then a "brew install haskell-platform" generates thousands of "ld: warning: text reloc in _cZh_str to _stg_ap_pppppp_info" warnings then fails on C Compiler errors. I must have missed something important? Any advice from other OS/X Lion users much appreciated. Thanks, Stu

I recommend installing outside homebrew, really. If you want the platform, I'd go with the pkg installer on the site, but I usually bootstrap the bindist from here.[1] I configure it to be in its own prefix in my home directory and to use the GMP from homebrew. If you'd like to go that way, let me know and I'll see if I can dig up the proper methods to get the newest cabal-install, as well. A few configs need fiddling, but other than that it's painless. Additionally, have you tried the homebrew install with particular compiler choices? Try --use-clang (I'm pretty sure it uses LLVM by default, but if clang doesn't work you can always pass it --use-llvm. You never know.). [1]:http://www.haskell.org/ghc/download_ghc_7_4_1#macosx_x86_64 Jack Henahan jhenahan@uvm.edu == Computer science is no more about computers than astronomy is about telescopes. -- Michael R. Fellows == On Mar 6, 2012, at 2:57 AM, Stuart Hungerford wrote:
Hi,
I'd like to start using Haskell on my OS/X Lion system. In preparation I've installed 10.7.3 and the latest XCode. I've also installed the XCode command line tools.
I'm using Homebrew and run "brew doctor" first to make sure Homebrew is happy. Then a "brew install haskell-platform" generates thousands of "ld: warning: text reloc in _cZh_str to _stg_ap_pppppp_info" warnings then fails on C Compiler errors.
I must have missed something important? Any advice from other OS/X Lion users much appreciated.
Thanks,
Stu
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Thu, Mar 8, 2012 at 9:19 AM, Jack Henahan
I recommend installing outside homebrew, really. If you want the platform, I'd go with the pkg installer on the site, but I usually bootstrap the bindist from here.[1] I configure it to be in its own prefix in my home directory and to use the GMP from homebrew. If you'd like to go that way, let me know and I'll see if I can dig up the proper methods to get the newest cabal-install, as well. A few configs need fiddling, but other than that it's painless.
Thanks for that--I'm trying the .pkg install now and will avoid Homebrew for GHC/platform until those versions have settled down. Any other installation hints you've developed would be useful too! Stu
participants (2)
-
Jack Henahan
-
Stuart Hungerford