
Hi The --user flag did the trick. Thank you very much. /Mads Daniel Fischer wrote:
Am Sonntag 28 Februar 2010 14:41:03 schrieb Mads Lindstrøm:
Hi
When I do:
cabal list --simple-output | grep -i "HaXml 1.20"
I get:
HaXml 1.20 HaXml 1.20.1 HaXml 1.20.2
So there are versions HaXml 1.20* available on hackage
But when running:
runhaskell Setup.hs configure
For that, you must have one installed already, and unless you pass the "-- user" flag, that must be in the global package database.
I get:
Configuring XrcAccessors-0.0... Setup.hs: At least the following dependencies are missing: HaXml -any
ghc-pkg
I get output like:
<snip> /home/ghc6103/lib/ghc-6.10.3/./package.conf: Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3), </snip>
global package database, no HaXml
<snip> /home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf: Cabal-1.6.0.2, Cabal-1.8.0.2, Diff-0.1.2, HDBC-2.1.1, HDBC-odbc-1.1.6.0, HDBC-odbc-2.1.0.0, HTTP-4000.0.4, HUnit-1.2.2.1, HaXml-1.20.2, MetaHDBC-0.1.0, QuickCheck-2.1.0.3, SQLLib-0.0, </snip>
user package database, HaXml present
That is, HaXml shows itself in the /home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf list, but not in the /home/ghc6103/.ghc/x86_64-linux-6.10.3/package.conf . Is this the problem
Yes.
and how do I fix it?
a) cabal install XrcAccessors, in contrast to the runghc ./setup.hs ... route, cabal install's default is user installs b) pass the --user flag to runghc ./Setup.hs configure c) (not recommended in general) make a global install of HaXml, either by runghc ./Setup... or cabal install --global HaXml
Greetings,
Mads Lindstrøm