Whether you are trying to build your own GHC compilers on CentOS 5 or just get a working GHC, http://justhub.org/download is a good place to start as you will be able to get a variety of compilers and platforms and the GCC and binutils packages used to build them (installed in /usr/hs/gcc and /usr/hs/binutils).

 

Chris

 

From: haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of aditya bhargava
Sent: 28 June 2012 01:23
To: Tim Docker
Cc: Johannes Waldmann; haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

 

Johannes,

This worked for me: http://justhub.org/download

 

 

Adit

 

On Wed, Jun 27, 2012 at 4:05 PM, Tim Docker <twd2@dockerz.net> wrote:

Here's the steps I had to go go to get ghc7.0 working on RHEL 5.6:

http://twdkz.wordpress.com/2011/12/21/installing-ghc-7-0-3-and-the-haskell-platform-on-rhel-5-6/

I expect that the same steps will work for ghc 7.4.  I need to use a more recent version of gcc that than supplied with RHEL5.6.

Tim



On 27/06/2012, at 5:33 PM, Johannes Waldmann wrote:

> Dear all,
>
> I need a recent ghc on a not-so-recent (?) CentOS.
>
> The ghc binary package (7.2 or 7.4) does not work
> because of a mismatch in the libc version.
>
> ghc-7.0 is working but when I use it to compile 7.4,
> it breaks with some linker error (relocation R_X86_64_PC32 ...)
> it also suggests "recompile with -fPIC" but I don't see how.
>
> (In this particular case, I absolutely cannot change/update the OS.)
>
> Thanks, J.W.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



 

--
adit.io