IT練習ノート

IT関連で調べたこと(実際は嵌ったこと)を書いています。

Amazon Linux AMI にhaskellインストール

haskellのライブラリをいろいろインストールして試行錯誤したいと思ったので、wasのEC2上にHaskellをインストールしました。ただ、インストール自体で試行錯誤しました。。cabelがインストールできず成功はしてないとおもいますが、とりあえず動きました。

たぶん、microインスタンスではコンパイルに時間がかかると思います。

作業の流れは下記のような感じです。

sudo wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-x86_64-unknown-linux.tar.bz2
tar->cd->configure->make
sudo wget http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz
tar->cd->configure->make
sudo wget http://hackage.haskell.org/package/Cabal-1.18.1.3/Cabal-1.18.1.3.tar.gz
tar->cd->READMEをよむ
sudo wget http://hackage.haskell.org/package/cabal-install-1.18.0.3/cabal-install-1.18.0.3.tar.gz
tar->cd->bootstrap.sh 

platoformのインストールで失敗した部分のログは下記です。失敗しましたが、ghciが動いたことと、cabalを個別にインストールできたので、とりあえずという感じですねぇ。

"/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0"
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )

Setup.lhs:16:29: Warning:
    In the use of `defaultUserHooks'
    (imported from Distribution.Simple):
    Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks"

Setup.lhs:41:44: Warning:
    In the use of `buildVerbose'
    (imported from Distribution.Simple.Setup):
    Deprecated: "Use buildVerbosity instead"

Setup.lhs:57:12: Warning:
    In the use of `defaultUserHooks'
    (imported from Distribution.Simple):
    Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks"

Setup.lhs:63:12: Warning:
    In the use of `defaultUserHooks'
    (imported from Distribution.Simple):
    Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2
             compatibility in which case you must stick with defaultUserHooks"
Linking Setup ...

collect2: ld terminated with signal 9 [強制終了]

Error:
Compiling the Setup script failed
make: *** [build.stamp] エラー 2