9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacOS X 10.9 MavericksにHaskell環境を整えた時のメモ

Last updated at Posted at 2014-08-12

準備物

Haskell Platform
http://www.haskell.org/platform/mac.html

clang-xcode5-wrapper
https://gist.github.com/mzero/7245290

1.Haskell Platformをインストール

省略

2.clang-xcode5-wrapperを/usr/local/binにコピー

$ sudo cp clang-xcode5-wrapper /usr/local/bin
$ sudo chown root /usr/local/bin/clang-xcode5-wrapper
$ sudo chmod +x /usr/local/bin/clang-xcode5-wrapper

3.設定の書き換え

sudo sed -i -e "s:C compiler command.*$:C compiler command\",\"/usr/local/bin/clang-xcode5-wrapper\"):g" /Library/Frameworks/GHC.framework/Versions/Current/usr/lib/ghc-7.6.3/settings

4.パスの設定

シェルの設定ファイルに追加

export PATH=$HOME/Library/Haskell/bin:$PATH

5.cabalをアップデート

git clone https://github.com/haskell/cabal.git
cd cabal/cabal-install
cabal update
git checkout cabal-install-v1.20.0.3
cabal install
9
9
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
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?