Skip to content

Instantly share code, notes, and snippets.

@yoavram
Last active April 29, 2017 16:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save yoavram/4999956 to your computer and use it in GitHub Desktop.
Save yoavram/4999956 to your computer and use it in GitHub Desktop.
How to build pandoc for heroku. This was run on an Ubuntu 12.04 machine with root permission. Regular lines are commands, lines starting with '>' represent the output of a command.
sudo apt-get install vagrant
git clone https://bitbucket.org/puffnfresh/vagrant-haskell-heroku.git
cd vagrant-haskell-heroku
vagrant up
vagrant ssh
cabal update
cabal install cabal-install
cabal --version
> cabal-install version 0.14.0
> using version 1.14.0 of the Cabal library
cabal install highlighting-kate
cabal install zip-archive
cabal install hsb2hs
cabal install texmath
cabal install hs-bibutils
cabal install citeproc-hs -fembed_data_files
cabal install pandoc -fembed_data_files
/home/vagrant/.cabal/bin/pandoc --version
> pandoc 1.10.1
> Compiled with citeproc-hs 0.3.7, texmath 0.6.1.3, highlighting-kate 0.5.3.7.
@yoavram
Copy link
Author

yoavram commented Feb 21, 2013

If for some reason the data files (csl etc.) didn't embed in pandoc run:

cabal install --reinstall --force-reinstall -fembed_data_files citeproc-hs pandoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment