Created
July 29, 2012 14:33
-
-
Save schmurfy/3199254 to your computer and use it in GitHub Desktop.
Install pandoc Mac OS X 10.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
$ sudo chown -R `whoami` /usr/local/texlive | |
$ tlmgr update --self | |
$ tlmgr install ucs | |
$ tlmgr install etoolbox | |
# Install pandoc view homebrew | |
$ brew install haskell-platform | |
$ cabal install pandoc | |
# add to your path "~/.cabal/bin" | |
# Now to convert a document | |
$ pandoc doc.pandoc doc.pdf |
I was starting from scratch (no LaTeX), so I had to do the following:
- Install MacTeX Or see this link:
$ brew tap phinze/cask
$ brew install brew-cask
$ brew cask install mactex
- In this version, pdflatex is broken, so I had to go to my Applications/TeX folder and run FixMaxTeX2013.pkg. Or see this stack exchange link
- Now I'm ready to install pandoc as above
$ brew update
$ brew install pandoc
@arvindraghavan, this is an awesome routine. just wanted to add that after I followed your steps texbin wasn't on my path, which I then fixed with:
ln -s /usr/local/texlive/2014/bin/x86_64-darwin /usr/bin/texbin
This line not work anymore:
~$ brew install haskell-platform
Error: No available formula for haskell-platform
We no longer package haskell-platform. Consider installing ghc
and cabal-install instead:
brew install ghc cabal-install
A binary installer is available:
https://www.haskell.org/platform/mac.html
if you have installed port, simply type this
(works quickly on my OS X Yosemite)
$ sudo port install pandoc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the need to install haskell ?? ...
Just do brew update and brew install pandoc.