Running AutoInstall SSL on CentOS Linux 7
CentOS Linux 7 reached end of life on June 30, 2024. However, third-party vendors still provide patch support, so some companies are continuing to use it.
AutoInstall SSL does not officially support CentOS Linux 7, but you can run AutoInstall SSL on CentOS 7 by updating GNU Compiler Collections (GCC).
Note that this version update could possibly create issues if the server is running any existing libraries or software that rely on the older version of GCC.
You will need to rebuild any dependent software with the new GCC version or install the new GCC alongside the older version using tools like devtoolset. We suggest installing the newer GCC version alongside the existing one to minimize disruption. We recommend doing a full backup of the system before making any changes to the current environment.
These steps should fix error messages such as:
./AutoInstallSSL: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./AutoInstallSSL) ./AutoInstallSSL: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by ./AutoInstallSSL)
Note that you will need to have root permissions or root access to make these changes.
Update Automatically
You can try to automatically update GCC by running these commands:
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-7
sudo scl enable devtoolset-7 bash
Update Manually
If the version is not been updated you will need to manually do it using these steps:
Run these commands:
sudo yum groupinstall "Development Tools"
sudo yum install gcc gcc-c++ kernel-devel
sudo yum install wget bzip2
Manually download the GCC source code for a version update:
sudo wget http://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz
Extract tar.gz file and build GCC:
sudo tar -xvzf gcc-9.3.0.tar.gz
sudo cd gcc-9.3.0
sudo ./contrib/download_prerequisites
sudo mkdir build && cd build
sudo ../configure --disable-multilib --enable-languages=c,c++
sudo make -j$(nproc)
sudo make install
Update the symbolic link for libstdc++:
sudo ln -sf /usr/local/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6