何故か Haskell(GHC) install
port からインストールできないとよく見かけたけど
ghc 6.8.2 は portからインストール出来ました。
小一時間近く掛かっちゃったけど…
$ port search ghc ghc lang/ghc 6.8.2 The Glorious Glasgow Haskell Compilation System ghc-devel lang/ghc-devel 6.7 The Glorious Glasgow Haskell Compilation System (development version)
$ sudo port install ghc ...途中省略
-
-
- > Building readline with target all
- > Staging readline into destroot
- > Installing readline 5.2.007_0+darwin_9
- > Activating readline 5.2.007_0+darwin_9
- > Cleaning readline
- > Fetching ghc
- > Attempting to fetch ghc-6.8.2-src.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
- > Attempting to fetch ghc-6.8.2-src-extralibs.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
- > Attempting to fetch ghc-6.8.2-darwin-i386-leopard-bootstrap.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
- > Verifying checksum(s) for ghc
- > Extracting ghc
- > Applying patches to ghc
- > Configuring ghc
- > Building ghc with target all
- > Staging ghc into destroot
- > Installing ghc 6.8.2_2+darwin_9_i386
- > Activating ghc 6.8.2_2+darwin_9_i386
- > Cleaning ghc
-
$ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.8.2
$ emacs hello.hs
main = putStrLn "Hello world!! > hello.hs"
$ ghc hello.hs -o hello $ ./hello Hello world!!