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

Parent topic: Deploying GNU 9.1