Using Cabal for dependancies
bringert at cs.chalmers.se
Mon Jan 15 08:56:54 EST 2007
On Jan 15, 2007, at 14:43 , Neil Mitchell wrote:
> Hi Bjorn,
> After going through pain with dependancy hell (like .dll hell, but
> cross platform) I finally got cabal-install to build.
> The list command looked most interesting, but:
> D:\sources\contrib\Cabal\cabal-install>cabal-install list
> configure: searching for ghc in path.
> configure: found ghc at C:\ghc\ghc-6.4.2\bin\ghc.exe
> "C:\ghc\ghc-6.4.2\bin\ghc.exe" --numeric-version >tmp2296
> configure: looking for package tool: ghc-pkg near compiler in C:\ghc
> configure: found package tool in C:\ghc\ghc-6.4.2\bin\ghc-pkg.exe
> cabal-install: No valid config dir found!
> cabal-install emit also gives the same error.
Ah, Windows. I meant to ask you to test cabal-install on Windows at
the hackathon, but I didn't get that far. I think that it is looking
for /etc/cabal-install, which you probably don't have. I should set
up GHC in my Windows VM and get it working. You could try --config-
dir=<some Windows dir where you have put etc-cabal-install/serv.list>
in the meantime. You need to run cabal-install update as the first
thing you do too.
More information about the cabal-devel