Compiling and Installing GMP
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the installation package:
tar -vxf gmp-6.1.0.tar.bz2
- Run the following command to switch to the directory in which the decompressed files are stored:
cd gmp-6.1.0/
- Run the following command to perform compilation and installation:
./configure --prefix=/path/to/GMP/gmp-6.1.0
make
make install
- Run the following command to load the environment variable:
export LD_LIBRARY_PATH=/path/to/GMP/gmp-6.1.0/lib:$LD_LIBRARY_PATH
The following figure shows directory contents when the installation is successful.

Parent topic: Deploying GNU 9.1