*** setup configure Reading installed packages... /usr/local/bin/ghc-pkg dump --global /usr/local/bin/ghc-pkg dump --user Dependency Cabal >=1.6: using Cabal-1.7.4 Creating setup (and its parents) /usr/local/bin/ghc -package Cabal-1.7.4 --make Setup.lhs -o setup/setup -odir setup -hidir setup [1 of 1] Compiling Main ( Setup.lhs, setup/Main.o ) Linking setup/setup ... setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/package/mathlink-2.0.1.1 --verbose Configuring mathlink-2.0.1.1... Dependency array >=0.2 && <0.4: using array-0.2.0.0 Dependency base >=4.0 && <4.3: using base-4.1.0.0 Dependency containers >=0.2 && <0.4: using containers-0.2.0.1 Dependency haskell98 -any: using haskell98-1.0.1.0 Dependency ix-shapable -any: using ix-shapable-0.1.0 Dependency mtl ==1.1.*: using mtl-1.1.0.2 Using Cabal-1.7.3 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/mathlink-2.0.1.1/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/mathlink-2.0.1.1 Documentation installed in: /usr/local/tmp/archive/install/share/doc/mathlink-2.0.1.1 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.4 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs 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.22 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 *** setup haddock setup/setup haddock --verbose --html-location=http://hackage.haskell.org/packages/archive/$pkg/$version/doc/html --hyperlink-source Reading parameters from ./mathlink.buildinfo Running Haddock for mathlink-2.0.1.1... /usr/local/bin/haddock --use-contents=http://hackage.haskell.org/package/mathlink-2.0.1.1 --ghc-version Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library mathlink-2.0.1.1... Creating dist/build/Foreign/MathLink (and its parents) /usr/local/bin/c2hs --include=dist/build --cppopts=-D__GLASGOW_HASKELL__=610 --cppopts=-Icbits --output-dir=dist/build --output=Foreign/MathLink/Internal.hs ./Foreign/MathLink/Internal.chs dist/build/Foreign/MathLink/Internal.chs.h:1:22: error: mathlink.h: No such file or directory c2hs: Error during preprocessing custom header file *** Trying again with preferred-versions *** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/package/mathlink-2.0.1.1 --constraint=base<4 --constraint=parsec<3 --constraint=HaXml==1.13.* --constraint=QuickCheck<2 --verbose Configuring mathlink-2.0.1.1... setup: At least the following dependencies are missing: base >1 && <1