Installation of various common packages
Task 1: GCC
Install Build environment
[root@master ~]# yum groupinstall "Development Tools"
Compile GCC
[install@master ~]$ wget https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.gz [install@master ~]$ tar xvzf gcc-15.1.0.tar.gz [install@master ~]$ cd gcc-15.1.0 [install@master gcc-15.1.0]$ ./contrib/download_prerequisites [install@master gcc-15.1.0]$ cd ..
Create build folder
[install@master ~]$ mkdir build-gcc-15.1.0 [install@master ~]$ cd build-gcc-15.1.0
Configure GCC (without 32bit support)
[install@master build-gcc-15.1.0]$ ../gcc-15.1.0/configure --prefix=/data/opt/tools/gcc-15.1.0 --disable-multilib
Compile in parallel using
-j 4. Note, this will take some time so do the next tasks in the meantime.[install@master build-gcc-15.1.0]$ make -j 4
Install GCC
[install@master build-gcc-15.1.0]$ make install
Create Modulefile for GCC
create the file
/data/opt/tools/modulesfiles/gcc/15.1.0.lua
Task 2: CMake
Download binary distribution from CMake
[install@master ~]$ wget https://github.com/Kitware/CMake/releases/download/v3.31.7/cmake-3.31.7.tar.gz
Unpack binary release in
/data/opt/tools/cmake-3.31.7Create Modulefile
/data/opt/tools/modulefiles/cmake/3.31.7.lua