OSXにGHCをインストール

公式サイトには、まだバイナリがないようなので、下記のページを参考にインストール。ソースコードコンパイルGHCが必要。
http://cvs.haskell.org/trac/ghc/wiki/X86OSXGhc

# curl -O http://pugs.blogs.com/dist/ghc-6.5.20060608.tar.bz2
# tar jxvf ghc-6.5.20060608.tar.bz2
# cd ghc-6.5.20060608
# ./configure
# sudo make install
# /usr/local/bin/ghci
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.5.20060608, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Prelude> 

インストールできたので、ソースからコンパイルできるか試してみる。

# darcs get --partial http://darcs.haskell.org/ghc
# cd ghc
# sh ./darcs-all get
# autoreconf
# ./configure
~
checking for dvips... no
configure: WARNING: cannot find an FO => DVI converter, you will not be able to build DVI or PostScript documentation
checking for pdfxmltex... no
configure: WARNING: cannot find an FO => PDF converter, you will not be able to build PDF documentation
checking for ghc-pkg matching /usr/local/bin/ghc... (cached) /usr/local/bin/ghc-pkg
checking for happy... no
checking for version of happy... 
configure: error: Happy version 1.15 or later is required to compile GHC.

Happyが必要らしい。

# curl -O http://www.haskell.org/happy/dist/1.15/happy-1.15-src.tar.gz
# tar zxvf happy-1.15-src.tar.gz
# cd happy-1.15
# ./configure
checking build system type... i686-apple-darwin8.7.1
checking host system type... i686-apple-darwin8.7.1
checking target system type... i686-apple-darwin8.7.1
Unrecognised platform: i686-apple-darwin8.7.1

そのままでは無理らしい。とりあえず、保留。

WEB+DB PRESS Vol.34

WEB+DB PRESS Vol.34