本体インストール
ghc と haskell-platform をインストールすれば(いちおう)良いようです。
gcc とかも入ってきましたが…
トータルで20分くらい(MBP/retina 13" Intel Core i5 2.4 GHz 8GB)。
$ brew install ghc haskell-platform ==> Installing dependencies for ghc: gmp, mpfr, libmpc, isl, cloog, gcc ==> Installing ghc dependency: gmp ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gmp-6.0.0a. ######################################################################## 100.0% ==> Pouring gmp-6.0.0a.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/gmp/6.0.0a: 15 files, 3.2M ==> Installing ghc dependency: mpfr ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mpfr-3.1.2- ######################################################################## 100.0% ==> Pouring mpfr-3.1.2-p8.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/mpfr/3.1.2-p8: 24 files, 3.5M ==> Installing ghc dependency: libmpc ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libmpc-1.0. ######################################################################## 100.0% ==> Pouring libmpc-1.0.2.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/libmpc/1.0.2: 10 files, 384K ==> Installing ghc dependency: isl ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/isl-0.12.2. ######################################################################## 100.0% ==> Pouring isl-0.12.2.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/isl/0.12.2: 55 files, 3.1M ==> Installing ghc dependency: cloog ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cloog-0.18. ######################################################################## 100.0% ==> Pouring cloog-0.18.1.mavericks.bottle.1.tar.gz 🍺 /usr/local/Cellar/cloog/0.18.1: 33 files, 556K ==> Installing ghc dependency: gcc ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gcc-4.8.3_1 ######################################################################## 100.0% ==> Pouring gcc-4.8.3_1.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/gcc/4.8.3_1: 1046 files, 178M ==> Installing ghc ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/ghc-7.6.3_2 ######################################################################## 100.0% ==> Pouring ghc-7.6.3_2.mavericks.bottle.tar.gz ==> Caveats This brew is for GHC only; you might also be interested in cabal-install or haskell-platform. ==> Summary 🍺 /usr/local/Cellar/ghc/7.6.3_2: 5286 files, 772M ==> Downloading http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-p ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2013.2.0.0 ==> make install ==> Caveats Add cabal binaries to your PATH: export PATH=~/.cabal/bin:$PATH Run `cabal update` to initialize the package list. If you are replacing a previous version of haskell-platform, you may want to unregister packages belonging to the old version. You can find broken packages using: ghc-pkg check --simple-output You can uninstall them using: ghc-pkg check --simple-output | xargs -n 1 ghc-pkg unregister --force ==> Summary 🍺 /usr/local/Cellar/haskell-platform/2013.2.0.0: 1463 files, 231M, built in 13.3 minutes
付属品インストール
cabal updateしろと言ってきたので実行。
$ cabal update
Config file path source is default config file.
Config file /Users/riocampos/.cabal/config not found.
Writing default configuration to /Users/riocampos/.cabal/config
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
cabal install cabal-install しろと言ってきたので更に実行。
このログは長かったので省略。
全ログはgistに貼り付けました。
Haskell install log (OS X Mavericks 10.9.3 / homebrew 0.9.5) brew install ghc haskell-platform / cabal update / cabal install cabal-install
インストールされたバージョンを確認します。
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3