building Haskell Platform for CentOS 5.2 with a /tmp mounted noexec

Hi Everyone, Just to report that I now have Haskell Platform built for CentOS 5.2 with a /tmp mounted noexec. Looking back, the first main hurdle was getting GHC built for CentOS 5.2 (which uses Linux 2.6.9/glibc 2.5), but the procedure was pretty straight forward: . Keep trying generic binary Linux ghc packages until one that works is found (in this case ghc-6.8.3); . With ghc-6.8.3 installed, download the src tar ball for the next ghc release (6.10.1) and build and install that; . With the newly built GHC on the PATH, rinse and repeat until ghc-6.12.1 installed. It took a fair bit of time but, as far as I can tell, every single build worked flawlessly. My next task was getting cabal-install to work, which nearly defeated me, but it turns out that because CentOS mounts /tmp noexec, so all I had to do was get cabal-install to use somewhere else. As I was pithily advised: alias cabal="TMPDIR=/foo cabal" With that in place, AFAIK, the Haskell Platform built from source with the various configure scripts giving me enough hints to 'yum install' all the required CentOS packages. Thanks to everyone for their help. Chris

chris:
With that in place, AFAIK, the Haskell Platform built from source with the various configure scripts giving me enough hints to ‘yum install’ all the required CentOS packages.
Great work! Is there a website documenting this effort? Or better yet: a binary package I can add to the HP download page for Linux declaring CentOS support? http://hackage.haskell.org/platform/linux.html -- Don

"Chris Dornan"
. Keep trying generic binary Linux ghc packages until one that works is found (in this case ghc-6.8.3);
. With ghc-6.8.3 installed, download the src tar ball for the next ghc release (6.10.1) and build and install that;
I wonder, could you have gone straight from 6.8.3 to 6.12.1 (or if not that, since 6.10.1 built then presumably 6.10.4 probably would have as well). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

I don't know whether I could have gotten away with it but was happy to go
through all the intermediate stages: it seemed the safer bet.
The building of a complete GHC bundle from source is such a major
undertaking that I really didn't want to build it with an old compiler and
lose all of the testing that goes into each GHC release.
Chris
-----Original Message-----
From: Ivan Lazar Miljenovic [mailto:ivan.miljenovic@gmail.com]
Sent: 18 April 2010 12:03 AM
To: Chris Dornan
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] building Haskell Platform for CentOS 5.2 with a
/tmp mounted noexec
"Chris Dornan"
. Keep trying generic binary Linux ghc packages until one that works is found (in this case ghc-6.8.3);
. With ghc-6.8.3 installed, download the src tar ball for the next ghc release (6.10.1) and build and install that;
I wonder, could you have gone straight from 6.8.3 to 6.12.1 (or if not that, since 6.10.1 built then presumably 6.10.4 probably would have as well). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (3)
-
Chris Dornan
-
Don Stewart
-
Ivan Lazar Miljenovic