Download location (HTTP): http://www.ibiblio.org/pub/gnu/gmp/gmp-4.1.tar.gz Download location (FTP): ftp://ftp.gnu.org/gnu/gmp/gmp-4.1.tar.gz Version used: 4.1 Package size: 2 MB Estimated Disk space required: 19 MB |
The gmp package contains a MP library. This has useful functions for arbitrary precision arithmetic.
gmp will utilize: readline-4.3. |
Before installing gmp, you need to download randraw.c.41.patch from ftp://ftp.linuxfromscratch.org/blfs-patches/cvs and place it in your source directory.
Install gmp by running the following commands:
patch -Np0 -i ../randraw.c.41.patch && ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info && make && make install |
As with most libraries, there is no configuration to do, save that the library directory i.e. /usr/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run whilst logged in as root.
The gmp package contains gmp libraries.
gmp libraries contains the functions to operate on signed integers, rational numbers, and floating point numbers.