Haskell Platform for Linux に従って (バイナリ版) GHC と Haskell Platform のインストールをしたときのメモ。
まず、バイナリ版の GHC をインストール。
$ wget http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-unknown-linux.tar.bz2 $ tar xzf ghc-7.4.2-x86_64-unknown-linux.tar.bz2 $ cd ghc-7.4.2 $ ./configure checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory configure: error: cannot determine current directory
手元に libgmp.so.3 はないので symlink で対応した。
$ sudo ln -sf /usr/lib64/libgmp.so.10 /usr/lib64/libgmp.so.3
もう一度。
$ cd ghc-7.4.2 $ ./configure $ make $ sudo make install
次に、Haskell Platform のインストール。
haskell-platform-2012.4.0.0.tar.gz をダウンロードして、./configure、make、make install でよい。