Installing GNU
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the GNU installation package:
tar -vxf gcc-9.3.0.tar.xz
- Run the following command to go to GNU source code directory:
cd gcc-9.3.0
- 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
- 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
Parent topic: Setting Up the Environment for the Cluster Scenario