Page 1 of 1

better solution for problem with Haskell libgmp build error

Posted: 9. Aug 2012, 01:06
by mimosa
The 13.37 ghc Slackbuild (needed for XMonad) fails because it requires an outdated library at build time. A symlink works:

Code: Select all

# ln -s /usr/lib/ /usr/lib/
but that's ugly, and indeed, my research suggests it may create problems (though it never has for me using XMonad).

An alternative approach is to build the old library (gmp-4.3.2.tar.bz2), available here:

but obviously without installing it:

Code: Select all

$tar -xvf gmp-4.3.2.tar.bz2
$cd gmp-4.3.2
$make check
The needed files are in the .libs directory, and should be placed in /usr/lib:

Code: Select all

#cp -P ./.libs/* /usr/lib # -P to copy the symlink and not the file it points at
#ls -la /usr/lib | grep

lrwxrwxrwx   1 root root       24 Aug  8 15:02 -> /usr/lib/
-rwxr-xr-x   1 root root   325278 Aug  8 13:19
Then get the Glasgow Haskell compiler from slapt-src.

I've also put here, in case anyone prefers not to bother compiling an outdated library:

Just put the file in /usr/lib and create the (legit) symlink:

Code: Select all

#ln -s /usr/lib/ /usr/lib/