Skip to content

Instantly share code, notes, and snippets.

@mmitou
Created March 1, 2013 06:07
Show Gist options
  • Select an option

  • Save mmitou/5062757 to your computer and use it in GitHub Desktop.

Select an option

Save mmitou/5062757 to your computer and use it in GitHub Desktop.

ghcのインストール

ここでghc-7.4.2-src.tar.bz2を落とす。

sudo yum install ncurses-devel sudo mkdir -p /usr/local/haskell/ghc/7.4.2 ./configure --prefix=/usr/local/haskell/ghc/7.4.2 make sudo make install

環境変数PATHにghcのパスを加える。

export GHC_PATH=/usr/local/haskell/ghc/7.4.2/bin export PATH=${GHC_PATH}:$PATH

haskell-platformのインストール

haskell-platform-2012.4.0.0.tar.gzをダウンロードする。

sudo mkdir -p /usr/local/haskell/haskell-platform/2012.4.0.0 ./configure --prefix=/usr/local/haskell/haskell-platform/2012.4.0.0 make sudo make install

環境変数PATHにhaskell-platformのパスを加える

export HASKELL_PLATFORM_PATH=/usr/local/haskell/haskell-platform/2012.4.0.0/bin export CABAL_PATH=/home/ユーザー名/.cabal/bin export PATH=${CABAL_PATH}:${HASKELL_PLATFORM_PATH}:${GHC_PATH}:$PATH

cabal install cabal-install

@mmitou

mmitou commented Mar 1, 2013

Copy link
Copy Markdown
Author

cabal install cabal-devも忘れずに
これをやらないと、.cabal/binの下にfake-ghc-cabal-devが作られないのでところどころこける

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