LoginSignup
4
4

More than 5 years have passed since last update.

Ubuntu Server 14.04 LTS に Haskell Platform 2014.2.0.0 をインストールする

Last updated at Posted at 2014-09-29

概要

  • UbuntuにHaskell Platformの最新版(2014.9.29現在)をインストール
  • Amazonのami(ami-0185ac00)を利用したがそれ以外の環境でも可能
  • Generic Linux Binariesとしてビルドされたものを使用
  • /usr/local/haskell以下にインストールされる

ポイント

  • gccとlibgmpが無いと動かない
  • cabal-installはzlib.h (zlib1g-dev)が無いと動かない
  • libgmp.so.10からlibgmp.soへシンボリックリンクを張っておく

手順

Haskell Platform のインストール

https://www.haskell.org/platform/linux.html を見ながら行う。

ubuntu$ sudo su -
root# cd /
root# wget https://www.haskell.org/platform/download/2014.2.0.0/haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz
root# tar xvf haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz
root# rm haskell-platform-2014.2.0.0-unknown-linux-x86_64.tar.gz
root# /usr/local/haskell/ghc-7.8.3-x86_64/bin/activate-hs
root# apt-get install gcc
root# apt-get install libgmp10
root# apt-get install zlib1g-dev
root# ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 /usr/lib/x86_64-linux-gnu/libgmp.so
root# exit
ubuntu$ ghci
GHCi, version 7.8.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4