Amazon Linux に Pandoc の新しめのバージョンを入れる

yum install gcc glibc gmp gmp-devel freeglut freeglut-devel zlib-devel git
cd /usr/local/src/
wget https://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-centos65.tar.bz2
tar -jxf ghc-7.8.2-x86_64-unknown-linux-centos65.tar.bz2
cd ghc-7.8.2
./configure
make install

cd /usr/local/src/
git clone https://github.com/haskell/cabal.git
cd cabal/Cabal

ghc --make Setup.hs
./Setup configure --user
./Setup build
./Setup install
cd ../cabal-install
./bootstrap.sh
ln -s ~/.cabal/bin/cabal /usr/bin/

cabal update
cabal install pandoc
ln -s ~/.cabal/bin/pandoc /usr/bin/

参考サイト

http://qiita.com/a-suenami/items/ef4266a1b38dd5bd426e
https://gist.github.com/stephenjbarr/9237286