pandocをMacOS10.9にインストールしようとしてちょいと困ったのでメモを残しておく.
http://qiita.com/sky_y/items/80bcd0f353ef5b8980ee
を参考にしてpandocをインストールしようとした.
http://www.haskell.org/platform/ から,Haskell platformをダウンロードしてきて,インストール.
$ cabal update
$ cabal install cabal-install
$ cabal install pandoc
としたら,残念ながら,途中で,
Failed to install conduit-1.1.2.1
cabal: Error: some packages failed to install:
conduit-1.1.2.1 failed during the building phase. The exception was:
ExitFailure 1
http-conduit-2.1.2 depends on conduit-1.1.2.1 which failed to install.
pandoc-1.12.4 depends on conduit-1.1.2.1 which failed to install.
pandoc-citeproc-0.3.1 depends on conduit-1.1.2.1 which failed to install.
yaml-0.8.8.2 depends on conduit-1.1.2.1 which failed to install.
と言われてインストールできなかった.
どうもMacのclangコマンドを使うとだめだから,Haskellのcpphsを使えとのこと.
$ cabal install cpphs
として,
$ cabal install --ghc-options '-pgmPcpphs -optP--cpp' pandoc
でインストールできた.まぁ,このオプションが何を言いたいのかは知らんがね...
実際には,インストールしたcpphsへのパスが通っていなかったので,探してパスを通してやらんといけなかった.
$ which cpphs
/Uesrs/kobayashi/Library/Haskell/bin/cpphs
となっている.(ユーザ単位でのcabal install cpphs
であったため...)