Hi.<div><br></div><div>I'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="'courier new', monospace" size="1"># cat /proc/version </font></div>
<div><font class="Apple-style-span" face="'courier new', 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'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="'courier new', monospace"># ./configure --prefix=/usr/haskell-platform-2011.2.0.0/</font></div><div>
<font class="Apple-style-span" size="1" face="'courier new', 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' not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)</font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', monospace">utils/ghc-pwd/dist/build/tmp/ghc-pwd: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by utils/ghc-pwd/dist/build/tmp/ghc-pwd)</font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', 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 "make" it:</div><div><div><br></div>
<div><font class="Apple-style-span" size="1" face="'courier new', 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="'courier new', monospace">./configure --prefix=/usr/haskell-platform-2010.2.0.0/</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">make </font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br></font></div><div>
<font class="Apple-style-span" size="1" face="'courier new', monospace"># make</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">scripts/build.sh</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">**************************************************</font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', monospace">Scanning system for any installed Haskell Platform components...</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">Found:None.</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', monospace">New packages to install: None! All done.</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">**************************************************</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">Building </font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', monospace">"/usr/haskell-platform-2010.2.0.0/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.8.0.6"</font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', monospace">Linking Setup ...</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">collect2: ld terminated with signal 15 [Terminated]</font></div>
<div><br></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">Error:</font></div><div><font class="Apple-style-span" size="1" face="'courier new', monospace">Compiling the Setup script failed</font></div>
<div><font class="Apple-style-span" size="1" face="'courier new', 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="TMPDIR=/foo cabal"</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'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 "yum install" to get the software mentioned.</div>
<div><br></div><div><br></div><div>Regards,</div><div>Frode</div>