Hi.<div><br></div><div>I&#39;ve spent some time trying to setup the Haskell Platform on CentOS 5.5:</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1"># cat /proc/version </font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace" size="1">Linux version 2.6.18-028stab070.14 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Nov 18 16:04:02 MSK 2010</font></div>

</div><div><br></div><div>I&#39;ve compiled from source, similar to what is done here:</div><div><a href="http://www.haskell.org/pipermail/haskell-cafe/2010-April/076489.html">http://www.haskell.org/pipermail/haskell-cafe/2010-April/076489.html</a></div>

<div><br></div><div>Installation of GHC 7.0.2 failed:</div><div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"># ./configure --prefix=/usr/haskell-platform-2011.2.0.0/</font></div><div>

<font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">checking for path to top of build tree... utils/ghc-pwd/dist/build/tmp/ghc-pwd: /lib64/libc.so.6: version `GLIBC_2.9&#39; not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)</font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">utils/ghc-pwd/dist/build/tmp/ghc-pwd: /lib64/libc.so.6: version `GLIBC_2.7&#39; not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)</font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">configure: error: cannot determine current directory</font></div></div><div><br></div><div>I had to use GHS 6.12.3 which compiled without errors.</div>

<div><br></div><div>However when I tried installing the Haskell Platform I ran into problems.</div><div><br></div><div>Briefly, this is what I did and what happened trying to &quot;make&quot; it:</div><div><div><br></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">wget <a href="http://hackage.haskell.org/platform/2010.2.0.0/haskell-platform-2010.2.0.0.tar.gz">http://hackage.haskell.org/platform/2010.2.0.0/haskell-platform-2010.2.0.0.tar.gz</a></font></div>

<div><br></div><div>unpack...</div><div><br></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">./configure --prefix=/usr/haskell-platform-2010.2.0.0/</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"><br>

</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">make </font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"><br></font></div><div>

<font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"># make</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">scripts/build.sh</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">**************************************************</font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Scanning system for any installed Haskell Platform components...</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"><br>

</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Found:None.</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"><br></font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">New packages to install: None! All done.</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace"><br>

</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">**************************************************</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Building </font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">&quot;/usr/haskell-platform-2010.2.0.0/bin/ghc&quot; &quot;--make&quot; &quot;Setup&quot; &quot;-o&quot; &quot;Setup&quot; &quot;-package&quot; &quot;Cabal-1.8.0.6&quot;</font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Linking Setup ...</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">collect2: ld terminated with signal 15 [Terminated]</font></div>

<div><br></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Error:</font></div><div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">Compiling the Setup script failed</font></div>

<div><font class="Apple-style-span" size="1" face="&#39;courier new&#39;, monospace">make: *** [build.stamp] Error 2</font></div></div><div><br></div><div>I first thought it was related to the fact that Cabal was using the /tmp directory for executables, but the alias trick (<font class="Apple-style-span" size="1">alias cabal=&quot;TMPDIR=/foo cabal&quot;</font>) did not help.</div>

<div><br></div><div>Anyone have got any ideas on what might be causing this? Can it me any missing dependencies? I&#39;ve gone through the list described at <a href="http://www.vex.net/~trebla/haskell/haskell-platform.xhtml">http://www.vex.net/~trebla/haskell/haskell-platform.xhtml</a> and used &quot;yum install&quot; to get the software mentioned.</div>

<div><br></div><div><br></div><div>Regards,</div><div>Frode</div>