[Haskell-cafe] cabal problem?
duncan.coutts at worc.ox.ac.uk
Wed Nov 14 11:45:48 EST 2007
On Wed, 2007-11-14 at 16:16 +0000, Jens Blanck wrote:
> > sudo runghc Setup.hs install
> root's password:
> Setup.hs : Warning: Unknown field 'build-type'
> Setup.hs: error reading ./.setup-config; run "setup configure"
I suspect your path is different for your root user, so it's picking up
an old ghc and an old cabal version. You can tell it's an old version
(probably 1.1.x) because it doesn't know about the new build-type field.
You can work around it using:
ghc --make Setup.hs -o setup
sudo ./setup install
More information about the Haskell-Cafe