Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am having trouble getting a installing version 1.8.1.1 of pandoc. The repository has version 1.5.1.1, and the 1.8.1.1 tar.gz does not come with clear instructions for installation.

I have also tried the recommendation from the pandoc page:

sudo apt-get install cabal
cabal update 
cabal install pandoc

And pandoc is installed in ~/.cabal/lib/pandoc-1.8.1.1/ although man pandoc returns

man: can't resolve /usr/share/man/man1/pandoc.1.gz: No such file or directory
No manual entry for pandoc

Any assistance appreciated

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

I am guessing, your have to extend your PATH environment variable to include

~/.cabal/bin

and then relogin afterwards.

This can be done in different ways. e.g.

editor ~/.bashrc

and add at the end

export PATH=~/.cabal/bin:$PATH
share|improve this answer
add comment

To give the usual sort of access (assuming ~/.cabal is world readable), do this:

sudo ln -s $HOME/.cabal/bin/* /usr/local/bin
sudo ln -s $HOME/.cabal/man/man1/*.1 /usr/local/man/man1
sudo ln -s $HOME/.cabal/man/man5/*.5 /usr/local/man/man5

This allows man pandoc, man pandoc_markdown, man markdown2pdf. You could also cp instead of ln -s, but then you'll have to repeat the copy when next you upgrade pandoc.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.