Installation issues with Centos

# uname -a Linux <<hosename>> 2.6.32-220.2.1.el6.centos.plus.x86_64 #1 SMP Thu Dec 22 23:32:31 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux # cat /proc/version Linux version 2.6.32-220.2.1.el6.centos.plus.x86_64 ( mockbuild@c6b18n3.bsys.dev.centos.org) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Thu Dec 22 23:32:31 GMT 2011 I am trying to install Haskell framework on this server. - Installation for GHC went ok. no error - Installed ghc-7.4.1 from "ghc-7.4.1-x86_64-unknown-linux.tar" then while trying to install (in configure step) Haskell platform version 2012.2.0.0. I get following error: [root@qa-engine1 haskell-platform-2012.2.0.0]# ./configure ************************************************** * * Haskell Platform Source Installer * * For the Haskell Platform 2012.2.0.0 and GHC 7.4.1 * ************************************************** checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for ghc... /usr/local/lib/ghc-7.4.1/ghc checking for ghc-pkg... /usr/local/lib/ghc-7.4.1/ghc-pkg checking for hsc2hs... /usr/local/lib/ghc-7.4.1/hsc2hs checking version of ghc... 7.4.1 checking version of ghc-pkg matches... yes checking ghc actually works... no configure: error: Your installation of ghc does not appear to work. It cannot compile a simple program (see config.log for the details). If you installed ghc from a generic binary tarball then it is worth checking that you have the 'gmp' C library and header files installed. (On Debian-based systems this package is called libgmp3-dev.) ==================================== I have made sure that libc and gmp are indeed installed. while trying use yum to make sure I have gmp installed. ==================================== [root@qa-engine1 haskell-platform-2012.2.0.0]# yum install gmp Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.stanford.edu * extras: centos.mirror.facebook.net * updates: mirror.stanford.edu Setting up Install Process Package gmp-4.3.1-7.el6_2.2.x86_64 already installed and latest version Nothing to do ======================================== Any help is appreciated. Btw, I could make haskell latest version work on my mac osx. -Manish

On Sun, Sep 2, 2012 at 9:26 PM, Manish Trivedi
[root@qa-engine1 haskell-platform-2012.2.0.0]# yum install gmp
This is just the runtime library; you will also need the compile/link-time library provided by gmp-devel. That said, the contents of the config.log mentioned in the error message would be helpful. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

Hi Brandon,
Appreciate your reply. some more info. I just confirmed that gmp-devel is
installed too. yum message shows "Package gmp-devel-4.3.1-7.el6_2.2.x86_64
already installed and latest version".
I am attaching the config.log in the email.
Thanks in advance!
-Manish
On Sun, Sep 2, 2012 at 6:52 PM, Brandon Allbery
On Sun, Sep 2, 2012 at 9:26 PM, Manish Trivedi
wrote: [root@qa-engine1 haskell-platform-2012.2.0.0]# yum install gmp
This is just the runtime library; you will also need the compile/link-time library provided by gmp-devel. That said, the contents of the config.log mentioned in the error message would be helpful.
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Sun, Sep 2, 2012 at 10:49 PM, Manish Trivedi
I am attaching the config.log in the email.
You didn't install ghc properly, or you did and you then added its internal directory to your $PATH. The executables in /usr/local/lib/ghc-7.4.1 should not be run directly, as they require setup which is done by wrapper scripts that should be installed in /usr/local/bin if you installed it correctly. configure:2198: checking ghc actually works
configure:2207: /usr/local/lib/ghc-7.4.1/ghc -o conftest conftest.hs
ghc: missing -B<dir> option
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

Hi Manish, Are you aware of the CentOS distro I am maintaining at justhub.org /download? Even if you want to build your own installations it will probably be useful for getting you going. (It should soon appear on the Haskell Platform Linux page - or at least we have a ticket for it!) Chris

Thank you Chris! extremely delighted. worked like a charm.
I wish your distro appear on haskell wiki. very helpful.
regards,
manish
On Mon, Sep 3, 2012 at 12:54 AM, Chris Dornan
Hi Manish,****
** **
Are you aware of the CentOS distro I am maintaining at justhub.org/download? Even if you want to build your own installations it will probably be useful for getting you going.****
** **
(It should soon appear on the Haskell Platform Linux page – or at least we have a ticket for it!)****
** **
Chris****
** **

On Mon, 03 Sep 2012 11:57:34 +0200, Manish Trivedi
Thank you Chris! extremely delighted. worked like a charm. I wish your distro appear on haskell wiki. very helpful.
I just added this to the Linux page[0]. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/GNU/Linux#RHEL.2C_CentOS.2C_Scientific_Li... -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

Thanks Henk!
I just added this to the Linux page[0].
The action on that HP ticket was to put a link here, http://hackage.haskell.org/platform/linux.html, which should happen by the next platform release. Chris

Quoting Chris Dornan
Hi Manish,
Are you aware of the CentOS distro I am maintaining at justhub.org /download? Even if you want to build your own installations it will probably be useful for getting you going.
Great and spot on time for me. I'm trying to install Snap on my Centos-6.0 ISP (bluehost.com) which has shell but not root access and no OpenGL or GLUT. HP has (IMHO wrongly) included OpenGL and GLUT so I've cut the gl and glut sections from the HP configure script and platform.packages list with a variety of build failures so far. Previously I've been able to install and use ghc and HP in ~/ without problems. Is there any reason why this couldn't be done with your justhub package? As I've never tried this brute surgery on such a magnus opus before I'm not sure this is at all feasible? I hope this isn't too off topic. Cheers
(It should soon appear on the Haskell Platform Linux page - or at least we have a ticket for it!)
Chris

Previously I've been able to install and use ghc and HP in ~/ without
Hi Jim, problems. Is there any reason
why this couldn't be done with your justhub package?
As I've never tried this brute surgery on such a magnus opus before I'm not sure this is at all feasible?
I wouldn't recommend trying to install the justhub package in user-space. Starting from the GHC bindists and the sources for everything else (platform and hub wrapper) you can relocate everything of course. In theory I believe it would also be possible to make all the RPMs relocatable, but because of all of the moving parts it's not so easy in practice. It is on my list of things to do -- obviously the more requests I get the higher it will go on the priority list, and the number of requests has now just doubled, to two (but I will bet there are more -- I take it seriously). Chris

Quoting Chris Dornan
Hi Jim,
Thanks for such a quick response.
Previously I've been able to install and use ghc and HP in ~/ without problems. Is there any reason why this couldn't be done with your justhub package?
As I've never tried this brute surgery on such a magnus opus before I'm not sure this is at all feasible?
I wouldn't recommend trying to install the justhub package in user-space.
Starting from the GHC bindists and the sources for everything else (platform and hub wrapper) you can relocate everything of course. In theory I believe it would also be possible to make all the RPMs relocatable, but because of all of the moving parts it's not so easy in practice.
Sure. Too scary for me. However sandboxing everything ghc in user space seems to me a good idea at the moment.
It is on my list of things to do -- obviously the more requests I get the higher it will go on the priority list, and the number of requests has now just doubled, to two (but I will bet there are more -- I take it seriously).
BTW my ISP doesn't allow the use of yum. I can build a Snap server by manually installing the needed deps from HP but it silently crashes every couple of hours and I failed to build it with library-profiling. I'd like to get Snap working on this ISP as it's for a voluntary environmental science group and previous Snap installations on my home machine have seemingly worked perfectly. Cheers
Chris
participants (5)
-
Brandon Allbery
-
Chris Dornan
-
Henk-Jan van Tuyl
-
jims@stuttard.org
-
Manish Trivedi