Installing GHC and libgmp.so

harry <voldermort <at> hotmail.com>
2013-07-23 11:47:40 GMT

I've had a lot of trouble installing the pre-build binary of GHC on various
Linux systems for which packages don't exist - all of this stems from GHC
looking for libgmp.so, instead of libgmp.so.3. Various combinations of
--with-gmp-libraries haven't helped, particularly as I need a packaged build
for copying onto shared machines where I don't have enough disk space to
install from the binary package locally, and don't have root access to
create a shortcut in /usr/lib64.
Is it possible for someone to recompile the pre-build binaries, linked
against a specific version of libgmp, instead of a default which happens to
be on their machine? Or is there some other solution to my predicament?
--
View this message in context: http://haskell.1045720.n5.nabble.com/Installing-GHC-and-libgmp-so-tp5733330.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

Re: Installing GHC and libgmp.so

Somebody claiming to be harry wrote:
>all of this stems from GHC
>looking for libgmp.so, instead of libgmp.so.3
Most systems symlink libgmp.so to the default version installed. On Debian
stable it's libgmp.so.10 ... so it may work for you, but you may want to
upgrade.
--
--
Stephen Paul Weber, <at> singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

Re: Installing GHC and libgmp.so

harry <voldermort <at> hotmail.com>
2013-07-23 14:33:21 GMT

Stephen Paul Weber wrote
> Somebody claiming to be harry wrote:
>>all of this stems from GHC
>>looking for libgmp.so, instead of libgmp.so.3
>
> Most systems symlink libgmp.so to the default version installed. On
> Debian
> stable it's libgmp.so.10 ... so it may work for you, but you may want to
> upgrade.
It's not symlinked on the systems that I'm working with (mostly CentOS and
Red Hat - I'm not disputing that it might work on "most" systems). I also
need to install GHC on systems where I don't have root access, so I can't
create the link.
Could GHC be configured to look for libgmp.so.3, or whatever version it was
actually linked against, if it can't find libgmp.so?
--
View this message in context: http://haskell.1045720.n5.nabble.com/Installing-GHC-and-libgmp-so-tp5733330p5733348.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.

Re: Installing GHC and libgmp.so

Somebody claiming to be harry wrote:
>Stephen Paul Weber wrote
>> Somebody claiming to be harry wrote:
>I also
>need to install GHC on systems where I don't have root access, so I can't
>create the link.
You can create the link somewhere else, and use LD_LIBRARY_PATH
I have done this before. If your version of libgmp is compatible, it should
work.
--
--
Stephen Paul Weber, <at> singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph