I've installed GHC 6.9 recently. Now there are two GHCs in my system:
$ ls l ~/bin/ghc /etc/alternatives/ghc
lrwxrwxrwx 1 root root 26 20071023 12:10 /etc/alternatives/ghc -> /usr/lib/ghc6.6.1/bin/ghc
lrwxrwxrwx 1 vvv vvv 16 20071130 17:19 /home/vvv/bin/ghc -> ghc6.9.20071130
The newer one takes precedence:
$ which ghc
/home/vvv/bin/ghc
Unfortunately, I can't configure `xmonad' with this configuration.
$ cd ~/src/xmonad
$ runhaskell Setup.lhs clean
cleaning...
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
base <3, unix any
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
base >=3, containers any, directory any, process any, unix any
All mentioned dependencies seem to be in place:
$ ghcpkg list
/home/vvv/lib/ghc6.9.20071130/package.conf:
Cabal1.3, array0.1, base3.0, bytestring0.9, containers0.1,
directory1.0, filepath1.1, (ghc6.9.20071130), haskell981.0.1,
hpc0.5, oldlocale1.0, oldtime1.0, packedstring0.1,
pretty1.0, process1.0, random1.0, readline1.0.1, rts1.0,
templatehaskell2.2, unix2.2
/home/vvv/.ghc/i386linux6.9.20071130/package.conf:
X111.4.0, mtl1.1.0.0
Any ideas?
Could the problem relate to the GHC configuration settings?
$ cat /home/vvv/src/ghc/mk/build.mk
# "build fast" settings, copied from http://hackage.haskell.org/trac/ghc/wiki/Building/Hacking
SRC_HC_OPTS = H32m O fasm Rghctiming
GhcStage1HcOpts = O0 DDEBUG W
GhcLibHcOpts = O fgenerics
GhcLibWays =
SplitObjs = NO
GhcBootLibs = YES
Just to hinder "remove `--user'" suggestions...
$ runhaskell Setup.lhs configure --prefix=$HOME
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
X11 ==1.4.0, mtl any
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
X11 ==1.4.0, mtl any
Well, the idea (suggested by sjanssen) is to install the latest stable
Cabal and hide the one coming with GHC.
NB, it doesn't configure with `--user':
$ runhaskell Setup.lhs configure
Configuring Cabal1.2.2.0...
Setup.lhs: At least the following dependencies are missing:
base <3, filepath any
$ runhaskell Setup.lhs configure
Configuring Cabal1.2.2.0...
Setup.lhs: At least the following dependencies are missing:
base >=3,
pretty any,
directory any,
oldtime any,
process any,
containers any,
filepath any
So, the procedure is:
$ cd cabal1.2.2.0
$ runhaskell Setup.lhs configure --prefix=$HOME
$ runhaskell Setup.lhs build
$ runhaskell Setup.lhs install --user
$ ghcpkg hide Cabal1.3
This gives us:
$ ghcpkg list
/home/vvv/lib/ghc6.9.20071130/package.conf:
(Cabal1.3), array0.1, base3.0, bytestring0.9, containers0.1,
directory1.0, filepath1.1, (ghc6.9.20071130), haskell981.0.1,
hpc0.5, oldlocale1.0, oldtime1.0, packedstring0.1,
pretty1.0, process1.0, random1.0, readline1.0.1, rts1.0,
templatehaskell2.2, unix2.2
/home/vvv/.ghc/i386linux6.9.20071130/package.conf:
Cabal1.2.2.0, X111.4.0, mtl1.1.0.0
But the problem persists:
$ cd xmonad
$ runhaskell Setup.lhs clean
cleaning...
$ runhaskell Setup.lhs configure --prefix=$HOME
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
X11 ==1.4.0, mtl any
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
base <3, unix any
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
base >=3, containers any, directory any, process any, unix any
$ runhaskell Setup.lhs configure
Configuring xmonad0.4...
Setup.lhs: At least the following dependencies are missing:
X11 ==1.4.0, mtl any
:(