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.

Since the pandoc package in the repository is outdated, I would like to install it via cabal-install.

I ran cabal update, and then cabal install pandoc which fails with:

cabal: Couldn't read cabal file "pandoc/1.9.4.4/pandoc.cabal"

This might be relevant:

cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library 

my machine is running oneiric.

share|improve this question

1 Answer 1

Type echo $PATH and you'll probably see something that either (a) does not include $HOME/.cabal/bin or contains $HOME/.cabal/bin near the end.

Type export PATH=$HOME/.cabal/bin:$PATH, and then cabal install cabal-install. This will install the proper version of cabal, since the version in the ubuntu repositories is out-of-date. Then, you can cabal install pandoc just fine.

share|improve this answer
    
Thank you for your reply. After replicated your recommended steps I now get the following error when running cabal install cabal-install: Building cabal-install-1.16.0.1... Main.hs:75:8: Could not find module `Distribution.Verbosity': There are files missing in the `Cabal-1.16.0.1' package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. –  elementz Oct 25 '12 at 14:14
    
When running ghc-pkg check I get a long list of broken packages. –  elementz Oct 25 '12 at 14:19

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.