Error -- dist/Conftest.c: openFile: does not exist

Don Stewart dons at galois.com
Tue Nov 20 14:05:38 EST 2007


jb162:
> Hi caballers, I have installed cabal-install from darcs and can use
> update and list but not install. I'm using ubuntu Feisty and ghc 6.6. (I
> think this is the same problem that this person has >>
> http://article.gmane.org/gmane.comp.lang.haskell.cabal.devel/1353/ 
> 
> jim at mowa624-jb162:~/haskell/cabal/cabal-install$ ~/haskell/bin/bin/cabal
> -v3 install xslt
> Configuration:
> compiler: GHC
> repos: hackage.haskell.org:http://hackage.haskell.org/packages/archive
> cachedir: "/home/jim/.cabal/packages"
> user-install: true
> user-prefix: "/home/jim/.cabal"
> user-bindir: "$prefix/bin"
> user-libdir: "$prefix/lib"
> user-libexecdir: "$prefix/libexec"
> user-datadir: "$prefix/share"
> user-docdir: "$datadir/doc/$pkgid"
> user-htmldir: "$docdir/html"
> global-prefix: "/usr/local"
> global-bindir: "$prefix/bin"
> global-libdir: "$prefix/lib"
> global-libexecdir: "$prefix/libexec"
> global-datadir: "$prefix/share"
> global-docdir: "$datadir/doc/$pkgid"
> global-htmldir: "$docdir/html"
> searching for ghc in path.
> found ghc at /usr/bin/ghc
> ("/usr/bin/ghc",["--numeric-version"])
> /usr/bin/ghc is version 6.6
> looking for package tool: ghc-pkg near compiler in /usr/bin
> found package tool in /usr/bin/ghc-pkg
> ("/usr/bin/ghc-pkg",["--version"])
> /usr/bin/ghc-pkg is version 6.6
> searching for ld in path.
> found ld at /usr/bin/ld
> ("/usr/bin/ghc",["-c","dist/Conftest.c"])
> ("/usr/bin/ld",["-x","-r","dist/Conftest.o","-o","dist/Conftest2.o"])
> Reading installed packages...
> ("/usr/bin/ghc-pkg",["--user","list"])
> 'libxml-0.1' is cached.
> Extracting /home/jim/.cabal/packages/hackage.haskell.org/libxml/0.1/libxml-0.1.tar.gz to /tmp/TMPlibxml-0.1TMP...
> setupWrapper
> ["configure","-v3","--user","--prefix=/home/jim/.cabal","--bindir=/home/jim/.cabal/bin","--libdir=/home/jim/.cabal/lib/libxml-0.1/ghc-6.6","--libexecdir=/home/jim/.cabal/libexec","--datadir=/home/jim/.cabal/share/libxml-0.1","--docdir=/home/jim/.cabal/share/doc/libxml-0.1","--htmldir=/home/jim/.cabal/share/doc/libxml-0.1/html"] Just "/tmp/TMPlibxml-0.1TMP/libxml-0.1"
> cabal: dist/Conftest.c: openFile: does not exist (No such file or
> directory)
> 
> Any ideas?

This bug is fixed in the darcs version of Cabal, so grab that, then
rebuild cabal-install.

Cheers, 
  Don



More information about the cabal-devel mailing list