Haskell Platform: Troubleshooting package configuration errors?

Hello everyone, I'm trying to build the Haskell Platform 2013.2.0.0 (with required GHC 7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze). So far, I've stumbled upon some a few errors, but I've managed to solve them and I have let the maintainers know. Now I'm stuck with an error while configuring the "network" package (see the end of this email). As such error has no accompanying diagnostics, I don't know how I could fix it. Any suggestions? Thanks for your attention. Have a nice day. -- ERROR MESSAGE STARTS HERE -- ************************************************** Building network-2.4.1.2 "/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0" [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... "./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0" "--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg" "--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs" "--with-happy=../happy-1.18.10/dist/build/happy/happy" "--happy-options=--template=../happy-1.18.10" "--with-alex=../alex-3.0.5/dist/build/alex/alex" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace" "--user" Configuring network-2.4.1.2... Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2 -- ERROR MESSAGE ENDS HERE --

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/06/13 21:22, egarrulo wrote:
Hello everyone,
I'm trying to build the Haskell Platform 2013.2.0.0 (with required GHC 7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze).
So far, I've stumbled upon some a few errors, but I've managed to solve them and I have let the maintainers know. Now I'm stuck with an error while configuring the "network" package (see the end of this email). As such error has no accompanying diagnostics, I don't know how I could fix it. Any suggestions? Thanks for your attention.
Have a nice day.
-- ERROR MESSAGE STARTS HERE -- ************************************************** Building network-2.4.1.2 "/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0" [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... "./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0" "--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg" "--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs" "--with-happy=../happy-1.18.10/dist/build/happy/happy" "--happy-options=--template=../happy-1.18.10" "--with-alex=../alex-3.0.5/dist/build/alex/alex" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace" "--user" Configuring network-2.4.1.2...
Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2
-- ERROR MESSAGE ENDS HERE --
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
I think that the next logical step would be to configure the network package by hand and see what error comes up. `cabal unpack network' followed by `cabal configure' in the relevant directory should hopefully provide a more meaningful error. - -- Mateusz K. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJRu4RWAAoJEM1mucMq2pqX8H0P/1XW1Aiqi/g2Ze7TZYmf4OvK xutQ7q2/2SVkL6IGmqUMR8+ktmGdAaFTtPsrQebZtSxR9xLyKqLumjnjZIj6sTqX 3sZqDuIUx3/LbXomytng9RlqU7P2W9Oq2NMznHIpBlt/qxppV3tA4SK/gR6vgq29 tzeQbE6PWdgFhbk74DljKmnmX8UcTGygnQtj/mOvOWsfiJ/Adt7Lhh+jKBi2J4TB xOdd9PcY5JLu807S95XfmD9iUUobbU2wfxRzr04oikavV3freP+S6t/nyhHCLPES rOvZvnPrDupKHnUhk+Sqia/NCiIXIHJpZc+yV+vmBE2ztek+Dp8dBX3C+ZBG5Tbb e785IIU83jvOcOYJFaN9IKGBUNaCmY7hgfT6N7W/gtDbpFqe1Sezl9EimyEuAgjq STTqzG2yjENlq5Z3oW9HAblLISgcHK4J5Z1Q/MyyaUzUA8ZibLDVTOEmqiR4MOWC qthe3SpPV2IV1KXJTi8Dlpt7HwLOJF05uAGoSP2zQt9vRLftJ4gxuBKF1gPDeZP4 T0CQmz1eWlGf1UR0aLyRczX1abYfDR11KK/Sf6D2qOKN3HV3UfLVTIeF6D4yuRV7 itghxkzc64KqLKNdoutvaICahInhqEbvHp2JsaNDEeK9aSTZEY8hCadCQO+jSG2Y Uvm3MM8TNzLpSQ99BBIl =br3H -----END PGP SIGNATURE-----

On 14/06/13 23:00, Mateusz Kowalczyk wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 14/06/13 21:22, egarrulo wrote:
Hello everyone,
I'm trying to build the Haskell Platform 2013.2.0.0 (with required GHC 7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze).
So far, I've stumbled upon some a few errors, but I've managed to solve them and I have let the maintainers know. Now I'm stuck with an error while configuring the "network" package (see the end of this email). As such error has no accompanying diagnostics, I don't know how I could fix it. Any suggestions? Thanks for your attention.
Have a nice day.
-- ERROR MESSAGE STARTS HERE -- ************************************************** Building network-2.4.1.2 "/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0" [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... "./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0" "--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg" "--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs" "--with-happy=../happy-1.18.10/dist/build/happy/happy" "--happy-options=--template=../happy-1.18.10" "--with-alex=../alex-3.0.5/dist/build/alex/alex" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace" "--user" Configuring network-2.4.1.2...
Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2
-- ERROR MESSAGE ENDS HERE --
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
I think that the next logical step would be to configure the network package by hand and see what error comes up. `cabal unpack network' followed by `cabal configure' in the relevant directory should hopefully provide a more meaningful error.
Thanks for your suggestion. Indeed, I considered using "cabal", but since its Hackage page lists many dependencies, I gave up installing it by hand (something I did for the "alex" package to fix a build issue). Moreover, according to Hackage "cabal" depends on "network": http://hackage.haskell.org/package/cabal-install Therefore we would have a chicken-and-egg problem here, wouldn't we? Unless "cabal" could be built and installed for off-line use only.

egarrulo
Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2
I'm not familiar which system-level dependencies you need to have installed via apt-get before you can build the network package but it might help to install all of the build depends for the Debian GHC package: apt-get build-dep ghc6 I've built GHC 7.6.3 on squeeze successfully and I only remember having to run that apt-get command plus maybe a few more for the OpenGL -dev packages. -- Peter Jones --- Love to Develop Devalot: http://www.devalot.com

On 14/06/13 23:30, Peter Jones wrote:
egarrulo
writes: Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2
I'm not familiar which system-level dependencies you need to have installed via apt-get before you can build the network package but it might help to install all of the build depends for the Debian GHC package:
apt-get build-dep ghc6
I've built GHC 7.6.3 on squeeze successfully and I only remember having to run that apt-get command plus maybe a few more for the OpenGL -dev packages.
Thank you, Peter, but that didn't solve the issue. Meanwhile I've discovered that I was wrong and there is an automatic way to install "cabal": http://www.haskell.org/cabal/download.html However, building it with the included "bootstrap.sh" fails with: ------------ Linking Setup ... Configuring Cabal-1.14.0... Setup: At least the following dependencies are missing: base >=4 && <3 && >=2 && <5, unix >=2.0 && <2.6 Error during cabal-install bootstrap: Configuring the Cabal package failed ------------ Still, according to cabal's homepage, "bootstrap.sh" should manage dependencies: Quote: "To make the process easier the cabal-install tarball contains a bootstrap.sh script which downloads and installs all the dependencies." Shouldn't it? Thanks for your attention.

Apparently, "network" is a tricky package (emphasis mine):
Quote: "The library situation is great, with the exception of GUI and
***networking*** utilities, which are notorious for not compiling on all
platforms and breaking on compiler upgrades."
(source:
http://www.reddit.com/r/haskell/comments/14nj0r/what_doesnt_haskell_do_well/...)
Well, since Debian 7 has been released already, until I'll upgrade my
Debian 6 box, I'll content myself with the old Haskell environment
(GHC 6.12.1) that ships with Debian 6's package manager.
Thanks everybody for your attention.
Cheers.
-------- Original Message --------
Subject: Re: [Haskell-beginners] Haskell Platform: Troubleshooting
package configuration errors?
Date: Sat, 15 Jun 2013 00:09:21 +0200
From: egarrulo
egarrulo
writes: Error: Configuring the network-2.4.1.2 package failed make: *** [build.stamp] Error 2
participants (3)
-
egarrulo
-
Mateusz Kowalczyk
-
Peter Jones