tlmgrtool to install additional packages as needed.
apt-get install haskell-platform.
apt-get install texlive.)
First, install the Haskell platform, then use the
cabal tool to get the latest release of pandoc:
cabal update cabal install pandoc
Or, if you want to use pandoc’s citation processing features,
cabal update cabal install pandoc pandoc-citeproc
This will download and compile pandoc and all of its dependencies. By default, cabal will perform a user install, putting the pandoc executable in
~/.cabal/bin (on linux and BSD) or
~/Library/Haskell/bin (on OS X). Make sure this directory is in your path.
To update pandoc when a new release comes out on HackageDB, simply do
cabal update && cabal install pandoc again. You may get a message saying that the install may break earlier installations of pandoc and pandoc-citeproc. It should be safe to force the installation:
cabal install --force pandoc pandoc-citeproc
Alternatively, you can download the source tarball and follow the instructions in INSTALL.
It is possible to compile pandoc such that the data files pandoc uses are embedded in the binary. (The executables in the Windows and OS X packages are built this way.) The resulting binary can be run from any directory and is completely self-contained.
cabal update cabal install hsb2hs cabal install --flags="embed_data_files" pandoc pandoc-citeproc