Version 3 (modified by kirsten, 11 years ago) (diff)


Building GHC on Mac OS X 10.2, by Kirsten aged 26 1/52

  1. grab the HEAD off darcs, per [Building/GettingTheSources] (no problems here)
  2. run autoreconf (this went ok, because I had just upgraded my autoconf in order to build darcs)
  3. run ./configure
  4. oops, I only have happy 1.13, it wants happy 1.15
  5. go to the happy download page. what, no Mac OS X binary?
  6. grab the happy sources
  7. ./configure, make, make install. so far so good
  8. ./configure GHC again
  9. LOL, I need alex 2.0
  10. why isn't this integrated into the GHC build process? also, googling for just "alex" is un-useful. so is googling for "alex lexer" and "alex lexer haskell"
  11. LOL, *still* no Mac OS X binary.
  12. ./configure; make in alex
  13. have disgusting IM conversation with friend while waiting
  14. alex: "you lose at life":
    Creating a symbolic link from alex-2.0.1 to alex in /usr/local/bin failed: `/usr/local/bin/alex' already exists
    Perhaps remove `/usr/local/bin/alex' manually?
    make[2]: *** [install] Error 1
    make[1]: *** [install] Error 1
    make: *** [install] Error 1
  15. consider a career change
  16. rm /usr/local/bin/alex
  17. sudo rm /usr/local/bin/alex
  18. sudo make me a sandwich
  19. sudo make install
  20. okay, I have alex. yippee.
  21. ./configure in GHC again