bas@pcbas ~ $ cabal install unix-compat -v3 searching for ghc in path. found ghc at /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--numeric-version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc is version 7.0.1.20110217 looking for package tool: ghc-pkg near compiler in /home/bas/.ghcs/ghc-7.0.1.20110217/bin found package tool in /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["--version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg is version 7.0.1.20110217 ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--supported-languages"]) Reading installed packages... ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["dump","--global","-v2"]) ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["dump","--user","-v2"]) ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--print-libdir"]) Reading available packages... Resolving dependencies... selecting unix-compat-0.2.1.1 (hackage) and discarding unix-2.0, 2.2.0.0, 2.3.0.0, 2.3.1.0, 2.3.2.0, unix-compat-0.1, 0.1.1, 0.1.2.0, 0.1.2.1, 0.2 and 0.2.1 selecting base-4.3.1.0 (installed) selecting ffi-1.0 (installed) selecting ghc-prim-0.2.0.0 (installed) selecting integer-gmp-0.2.0.3 (installed) selecting rts-1.0 (installed) selecting unix-2.4.2.0 (installed) and discarding unix-2.4.0.0, 2.4.0.1, 2.4.0.2 and 2.4.1.0 In order, the following would be installed: unix-compat-0.2.1.1 (new package) unix-compat-0.2.1.1 has already been downloaded. Extracting /home/bas/.cabal/packages/hackage.haskell.org/unix-compat/0.2.1.1/unix-compat-0.2.1.1.tar.gz to /tmp/unix-compat-0.2.1.19146... Using internal setup method with build-type Simple and args: ["configure","--verbose=3","--ghc","--prefix=/home/bas/.cabal","--enable-library-profiling","--user","--flags=-portable","--constraint=base ==4.3.1.0","--constraint=unix ==2.4.2.0"] Configuring unix-compat-0.2.1.1... Creating dist (and its parents) searching for ghc in path. found ghc at /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--numeric-version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc is version 7.0.1.20110217 looking for package tool: ghc-pkg near compiler in /home/bas/.ghcs/ghc-7.0.1.20110217/bin found package tool in /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["--version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg is version 7.0.1.20110217 ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--supported-languages"]) Reading installed packages... ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["dump","--global","-v2"]) ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg",["dump","--user","-v2"]) ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["--print-libdir"]) Flags chosen: portable=False Dependency base ==4.3.1.0: using base-4.3.1.0 Dependency unix ==2.4.2.0: using unix-2.4.2.0 searching for alex in path. found alex at /usr/bin/alex ("/usr/bin/alex",["--version"]) /usr/bin/alex is version 2.3.3 searching for ar in path. found ar at /usr/bin/ar searching for c2hs in path. Cannot find c2hs on the path searching for cpphs in path. Cannot find cpphs on the path searching for ffihugs in path. Cannot find ffihugs on the path searching for gcc in path. found gcc at /usr/bin/gcc ("/usr/bin/gcc",["-dumpversion"]) /usr/bin/gcc is version 4.4.4 searching for greencard in path. Cannot find greencard on the path searching for haddock in path. found haddock at /home/bas/.ghcs/ghc-7.0.1.20110217/bin/haddock ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/haddock",["--version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/haddock is version 2.9.2 searching for happy in path. found happy at /usr/bin/happy ("/usr/bin/happy",["--version"]) /usr/bin/happy is version 1.18.4 searching for hmake in path. Cannot find hmake on the path searching for hsc2hs in path. found hsc2hs at /home/bas/.ghcs/ghc-7.0.1.20110217/bin/hsc2hs ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/hsc2hs",["--version"]) /home/bas/.ghcs/ghc-7.0.1.20110217/bin/hsc2hs is version 0.67 searching for HsColour in path. found HsColour at /usr/bin/HsColour ("/usr/bin/HsColour",["-version"]) /usr/bin/HsColour is version 1.17 searching for hugs in path. Cannot find hugs on the path searching for jhc in path. Cannot find jhc on the path searching for ld in path. found ld at /usr/bin/ld ("/home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc",["-c","/tmp/9146.c","-o","/tmp/9146.o"]) ("/usr/bin/ld",["-x","-r","/tmp/9146.o","-o","/tmp/9147.o"]) searching for lhc in path. Cannot find lhc on the path searching for lhc-pkg in path. Cannot find lhc-pkg on the path searching for nhc98 in path. Cannot find nhc98 on the path searching for pkg-config in path. found pkg-config at /usr/bin/pkg-config ("/usr/bin/pkg-config",["--version"]) /usr/bin/pkg-config is version 0.25 searching for ranlib in path. found ranlib at /usr/bin/ranlib searching for strip in path. found strip at /usr/bin/strip searching for tar in path. found tar at /bin/tar Using Cabal-1.8.0.6 compiled by ghc-6.12 Using compiler: ghc-7.0.1.20110217 Using install prefix: /home/bas/.cabal Binaries installed in: /home/bas/.cabal/bin Libraries installed in: /home/bas/.cabal/lib/unix-compat-0.2.1.1/ghc-7.0.1.20110217 Private binaries installed in: /home/bas/.cabal/libexec Data files installed in: /home/bas/.cabal/share/unix-compat-0.2.1.1 Documentation installed in: /home/bas/.cabal/share/doc/unix-compat-0.2.1.1 Using alex version 2.3.3 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar No c2hs found No cpphs found No ffihugs found Using gcc version 4.4.4 found on system at: /usr/bin/gcc Using ghc version 7.0.1.20110217 found on system at: /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc Using ghc-pkg version 7.0.1.20110217 found on system at: /home/bas/.ghcs/ghc-7.0.1.20110217/bin/ghc-pkg No greencard found Using haddock version 2.9.2 found on system at: /home/bas/.ghcs/ghc-7.0.1.20110217/bin/haddock Using happy version 1.18.4 found on system at: /usr/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /home/bas/.ghcs/ghc-7.0.1.20110217/bin/hsc2hs Using hscolour version 1.17 found on system at: /usr/bin/HsColour No hugs found No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.25 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar ("/usr/bin/gcc",["/tmp/9146.c","-o","/tmp/9146","-D__GLASGOW_HASKELL__=700","-Iinclude","-I.","-DUNIX_IMPL","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/base-4.3.1.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/base-4.3.1.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/integer-gmp-0.2.0.3","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/ghc-prim-0.2.0.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217"]) /usr/bin/gcc returned ExitFailure 1 with error message: In file included from include/HsUnixCompat.h:1, from /tmp/9146.c:1: /home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include/HsUnix.h:79:21: error: libutil.h: No such file or directory ("/usr/bin/gcc",["/tmp/9146.c","-o","/tmp/9146","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/base-4.3.1.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/integer-gmp-0.2.0.3","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/ghc-prim-0.2.0.0","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217","-L/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217"]) ("/usr/bin/gcc",["/tmp/9146.c","-o","/tmp/9146","-c","-D__GLASGOW_HASKELL__=700","-Iinclude","-I.","-DUNIX_IMPL","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/base-4.3.1.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include"]) /usr/bin/gcc returned ExitFailure 1 with error message: In file included from include/HsUnixCompat.h:1, from /tmp/9146.c:1: /home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include/HsUnix.h:79:21: error: libutil.h: No such file or directory ("/usr/bin/gcc",["/tmp/9146.c","-o","/tmp/9146","-c","-D__GLASGOW_HASKELL__=700","-Iinclude","-I.","-DUNIX_IMPL","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/base-4.3.1.0/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include","-I/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/include"]) /usr/bin/gcc returned ExitFailure 1 with error message: In file included from include/HsUnixCompat.h:1, from /tmp/9146.c:1: /home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/unix-2.4.2.0/include/HsUnix.h:79:21: error: libutil.h: No such file or directory cabal: Missing dependency on a foreign library: * Missing header file: HsUnixCompat.h This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: unix-compat-0.2.1.1 failed during the configure step. The exception was: ExitFailure 1 bas@pcbas ~ $ ghc --info [("Project name","The Glorious Glasgow Haskell Compilation System") ,("Project version","7.0.1.20110217") ,("Booter version","6.12.1") ,("Stage","2") ,("Build platform","i386-unknown-linux") ,("Host platform","i386-unknown-linux") ,("Target platform","i386-unknown-linux") ,("Have interpreter","YES") ,("Object splitting","YES") ,("Have native code generator","YES") ,("Have llvm code generator","YES") ,("Support SMP","YES") ,("Unregisterised","NO") ,("Tables next to code","YES") ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn") ,("Leading underscore","NO") ,("Debug on","False") ,("LibDir","/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217") ,("Global Package DB","/home/bas/.ghcs/ghc-7.0.1.20110217/lib/ghc-7.0.1.20110217/package.conf.d") ,("C compiler flags","[\"-fno-stack-protector\"]") ,("Gcc Linker flags","[]") ,("Ld Linker flags","[]") ] bas@pcbas ~ $ ghc +RTS --info [("GHC RTS", "YES") ,("GHC version", "7.0.1.20110217") ,("RTS way", "rts_thr") ,("Build platform", "i386-unknown-linux") ,("Build architecture", "i386") ,("Build OS", "linux") ,("Build vendor", "unknown") ,("Host platform", "i386-unknown-linux") ,("Host architecture", "i386") ,("Host OS", "linux") ,("Host vendor", "unknown") ,("Target platform", "i386-unknown-linux") ,("Target architecture", "i386") ,("Target OS", "linux") ,("Target vendor", "unknown") ,("Word size", "32") ,("Compiler unregisterised", "NO") ,("Tables next to code", "YES") ] bas@pcbas ~ $ cabal --version cabal-install version 0.8.2 using version 1.8.0.6 of the Cabal library