HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Talk:Cabal/How to install a Cabal package

I would like to add the following to the end of this topic:

(begin proposed addendum)

Note: If you have more than one Haskell compiler on your system, use the --with-compiler option for the configure step. That will ensure that Cabal uses the correct compiler during the entire installation process. For example:


 runghc Setup.hs configure --with-compiler=ghc-6.8.2
 runghc Setup.hs build
 runghc Setup.hs install

(end proposed addendum)

Without this, I didn't know that you need to use that flag. I just ran runhaskell with an explicit path to the compiler that I wanted. Cabal then ran the wrong ghc-pkg, and registered the installation to the wrong compiler.

Retrieved from "http://www.haskell.org/haskellwiki/Talk:Cabal/How_to_install_a_Cabal_package"

This page has been accessed 226 times. This page was last modified 12:17, 6 March 2008. Recent content is available under a simple permissive license.