LoginSignup
7
7

More than 5 years have passed since last update.

pandoc install on MacOS 10.9

Last updated at Posted at 2014-05-14

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であったため...)

7
7
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
7
7