Skip to content

Instantly share code, notes, and snippets.

@toshiharu
Last active December 16, 2015 06:59
Show Gist options
  • Select an option

  • Save toshiharu/5395171 to your computer and use it in GitHub Desktop.

Select an option

Save toshiharu/5395171 to your computer and use it in GitHub Desktop.
バイナリ版 GHC と Haskell Platform のインストールをインストールしたときのメモ。

バイナリ版 GHC と Haskell Platform のインストール

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 でよい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment