我要评分
获取效率
正确性
完整性
易理解

Compiling and Installing MPFR

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the installation package:

    tar -xvf mpfr-3.1.4.tar.bz2

  3. Run the following command to switch to the directory in which the decompressed files are stored:

    cd mpfr-3.1.4/

  4. Run the following command to perform compilation and installation:

    ./configure --prefix=/path/to/MPFR/mpfr-3.1.4 --with-gmp=/path/to/GMP/gmp-6.1.0

    make

    make install

  5. Run the following command to load environment variables:

    export LD_LIBRARY_PATH=/path/to/MPFR/mpfr-3.1.4/lib:$LD_LIBRARY_PATH

    The following figure shows directory contents when the installation is successful.