1.查看openssl安裝情況
[oracle@localhost bin]$ rpm -aq|grep openssl openssl-1.0.1e-48.el6.x86_64
發現沒有安裝openssl-devel
2.安裝openssl-devel
root用戶執行
yum install openssl-devel
出現glibc-common版本需求不一致導致安裝失敗
錯誤:Package: glibc-2.12-1.132.el6.i686 (rhel-source) Requires: glibc-common = 2.12-1.132.el6 已安裝: glibc-common-2.12-1.192.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201604140956.x86_64/6.8) glibc-common = 2.12-1.192.el6 Available: glibc-common-2.12-1.132.el6.x86_64 (rhel-source) glibc-common = 2.12-1.132.el6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
根據系統版本去阿里雲鏡像下載源
//下載鏡像 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo //替換$releasever為6 sed -i 's/$releasever/6/g' /etc/yum.rep //清除yum緩存 yum clean all //建立本地緩存 yum makecache //查看yum源中是否有軟件包 yum repolist 已加載插件:product-id, search-disabled-repos, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration 倉庫標識 倉庫名稱 狀態 base CentOS-6 - Base - mirrors.aliyun.com 6,713 extras CentOS-6 - Extras - mirrors.aliyun.com 47 rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source 3,690 updates CentOS-6 - Updates - mirrors.aliyun.com 1,020
此時安裝openssl-devel
.... //省略
已安裝: openssl-devel.x86_64 0:1.0.1e-58.el6_10 作為依賴被安裝: keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-65.el6 libcom_err-devel.x86_64 0:1.41.12-24.el6 libkadm5.x86_64 0:1.10.3-65.el6 libselinux-devel.x86_64 0:2.0.94-7.el6 libsepol-devel.x86_64 0:2.0.41-4.el6 作為依賴被升級: e2fsprogs.x86_64 0:1.41.12-24.el6 e2fsprogs-libs.x86_64 0:1.41.12-24.el6 krb5-libs.x86_64 0:1.10.3-65.el6 krb5-workstation.x86_64 0:1.10.3-65.el6 libcom_err.x86_64 0:1.41.12-24.el6 libss.x86_64 0:1.41.12-24.el6 openssl.x86_64 0:1.0.1e-58.el6_10 完畢!
成功安裝!
查看openssl安裝情況
[root@localhost yum.repos.d]# rpm -aq|grep openssl openssl-1.0.1e-58.el6_10.x86_64 openssl-devel-1.0.1e-58.el6_10.x86_64