Installing

Windows

  • There is a package installer at pandoc’s download page.
  • For PDF output, you’ll also need to install LaTeX. We recommend MiKTeX.

Mac OS X

  • There is a package installer at pandoc’s download page.
  • For PDF output, you’ll also need LaTeX. We recommend installing BasicTeX (64M), and using the tlmgr tool to install additional packages as needed.

Linux

  • First, try your package manager. Pandoc is in the Debian, Ubuntu, Slackware, Arch, Fedora, NiXOS, and gentoo repositories. (Note: it is recommended that Arch linux users use the version of the pandoc package from the haskell repository maintained by the ArchHaskell team.)
  • If the version in your repository is too old, use the instructions below under All platforms. Note that most distros have the Haskell platform in their package repositories. For example, on Debian/Ubuntu, you can install it with apt-get install haskell-platform.
  • For PDF output, you’ll need LaTeX. We recommend installing TeX Live via your package manager. (On Debian/Ubuntu, apt-get install texlive.)

BSD

All platforms

  • First, install the Haskell platform, then use the cabal tool to get the latest release of pandoc:

    cabal update
    cabal install pandoc

    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.

    If your distribution has GHC 6.12, you may get a dependencies conflict error:

    base-3.0.3.2 requires syb ==0.1.0.2
    however
    syb-0.1.0.2 was excluded because json-0.5 requires syb >=0.3.3

    In this case, do the following:

    cabal install cabal-install
    cabal install json-0.4.4
    cabal install pandoc
  • Alternatively, you can download the source tarball and follow the instructions in INSTALL.