环境
CentOS 7.5
官方地址:https://gcc.gnu.org/releases.html
镜像站点1:http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
镜像站点2:https://vault.centos.org/7.5.1804/os/x86_64/Packages/
OpenSSL: 1.0.2k-fips
安装OpenSSL
安装openssl时更建议将openssl、openssl-devel一块儿安装,否则可能出现openssl不可用。
OpenSSL 依赖包清单参考如下(镜像站下载)
keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm
krb5-devel-1.15.1-50.el7.x86_64.rpm
krb5-libs-1.15.1-50.el7.x86_64.rpm
libcom_err-1.42.9-19.el7.x86_64.rpm
libcom_err-devel-1.42.9-19.el7.x86_64.rpm
libkadm5-1.15.1-50.el7.x86_64.rpm
libselinux-2.5-15.el7.x86_64.rpm
libselinux-devel-2.5-15.el7.x86_64.rpm
libsepol-devel-2.5-10.el7.x86_64.rpm
libverto-devel-0.2.5-4.el7.x86_64.rpm
openssl-1.0.2k-19.el7.x86_64.rpm
openssl-devel-1.0.2k-19.el7.x86_64.rpm
openssl-libs-1.0.2k-19.el7.x86_64.rpm
openssl-perl-1.0.2k-19.el7.x86_64.rpm
openssl-static-1.0.2k-19.el7.x86_64.rpm
pkgconfig-0.27.1-4.el7.x86_64.rpm
zlib-devel-1.2.7-18.el7.x86_64.rpm
查看验证openssl版本
#版本查看
openssl version
一定要看
虽然已经列出了openssl的依赖包,但每个机器使用的镜像可能不相同,所需依赖的包也不尽相同,缺失什么依赖去镜像站下载即可。
gcc/g++安装