libgmp ------ rep uses GNU MP for it's bignum/rational implementation; you can find gmp at any GNU mirror. GMP as distributed only builds a static library and hasn't been updated for around four years. The support directory contains four patches that can be used to make gmp (version 2.0.2) build a shared library on some platforms (tested on at least Linux and Solaris). One of the patches also includes a number of bug fixes. Three of these patches were taken from the Redhat 6.0 gmp sources. |
$ tar xvfz gmp-2.0.2.tar.gz $ cd gmp-2.0.2 $ patch -p1 < ../librep-0.11.1/support/gmp-2.0.2-1.shared.patch $ patch -p1 < ../librep-0.11.1/support/gmp-2.0.2-sparc.patch $ patch -p1 < ../librep-0.11.1/support/gmp-2.0.2-fixes.patch $ patch -p1 < ../librep-0.11.1/support/gmp-2.0.2-solaris.patch $ ./configure $ make $ make check $ su # make install # exit |