Rate This Document
Findability
Accuracy
Completeness
Readability

Installing GNU

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the GNU installation package:
    tar -vxf gcc-9.3.0.tar.xz
  3. Run the following command to go to GNU source code directory:
    cd gcc-9.3.0
  4. Run the following commands to perform compilation and installation:
    ./configure --disable-multilib --enable-languages="c,c++,fortran"  --prefix=/path/to/GNU --disable-static --enable-shared --with-gmp=/path/to/GMP --with-mpfr=/path/to/MPFR --with-mpc=/path/to/MPC
    make
    make install
  5. Run the following commands to load the environment variables:
    export PATH=/path/to/GNU/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH