tar xvf nagios.tar.gz -C /usr/local
#/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
-bash: /usr/local/nagios/bin/nrpe: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
# yum provides ld-linux.so.2
# yum install glibc.i686 --nogpgcheck -y 或直接 yum install ld-linux.so.2 --nogpgcheck
报错:
Protected multilib versions: glibc-2.12-1.149.el6.i686 != glibc-2.12-1.149.el6_6.5.x86_64
Error: Protected multilib versions: nss-softokn-freebl-3.14.3-9.el6.i686 != nss-softokn-freebl-3.14.3-10.el6_5.x86_64
Error: Protected multilib versions: glibc-common-2.12-1.149.el6.i686 != glibc-common-2.12-1.149.el6_6.5.x86_64
# yum list | grep nss-softokn #查看安装的nss-softokn包
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
nss-softokn.x86_64 3.14.3-10.el6_5 @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5
nss-softokn-freebl.x86_64 3.14.3-10.el6_5 @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5
nss-softokn.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-devel.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-devel.x86_64 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-freebl.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-freebl-devel.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-freebl-devel.x86_64 3.14.3-9.el6 rhel-6-x86_64
报错原因:nagios.tar.gz是32位程序,需要的32位包nss-softokn-freebl-3.14.3-9.el6.i686安装不上,因为已经安装了nss-softokn-freebl-3.14.3-10.el6_5.x86_64,而实际上需要的是nss-softokn-freebl-3.14.3-10.el6.x86_64
i686的版本必须要和64位的版本一致才能安装(比如nss-softokn-freebl的3.14.3-9.el6 要等于 3.14.3-10.el6,后面的次版本号可以不一样,-9和-10可以不一样),需要将 nss-softokn-freebl-3.14.3-10.el6_5.x86_64的版本升级,并且不带el6_5,解决方法,在网上下载nss-softokn-freebl-3.14.3-17.el6.i686.rpm nss-softokn-freebl-3.14.3-17.el6.x86_64.rpm
# yum localinstall nss-softokn-freebl-3.14.3-17.el6.x86_64.rpm --nogpgcheck -y
# yum localinstall nss-softokn-freebl-3.14.3-17.el6.i686.rpm --nogpgcheck -y
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining nss-softokn-freebl-3.14.3-17.el6.i686.rpm: nss-softokn-freebl-3.14.3-17.el6.i686
Marking nss-softokn-freebl-3.14.3-17.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.14.3-17.el6 will be installed
--> Processing Dependency: libc.so.6 for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libdl.so.2 for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-17.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.149.el6_6.5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
nss-softokn-freebl i686 3.14.3-17.el6 /nss-softokn-freebl-3.14.3-17.el6.i686 375 k
Installing for dependencies:
glibc i686 2.12-1.149.el6_6.5 rhel-6-x86_64 4.3 M
Transaction Summary
=============================================================================================================================================================
Install 2 Package(s)
Total size: 4.7 M
Installed size: 14 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : glibc-2.12-1.149.el6_6.5.i686 1/2
Installing : nss-softokn-freebl-3.14.3-17.el6.i686 2/2
Verifying : nss-softokn-freebl-3.14.3-17.el6.i686 1/2
Verifying : glibc-2.12-1.149.el6_6.5.i686 2/2
Installed:
nss-softokn-freebl.i686 0:3.14.3-17.el6
Dependency Installed:
glibc.i686 0:2.12-1.149.el6_6.5
Complete!
# yum list | grep nss-softokn #查看安装的nss-softokn包
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
nss-softokn.x86_64 3.14.3-10.el6_5 @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5
nss-softokn-freebl.i686 3.14.3-17.el6 @/nss-softokn-freebl-3.14.3-17.el6.i686
nss-softokn-freebl.x86_64 3.14.3-17.el6 @/nss-softokn-freebl-3.14.3-17.el6.x86_64
nss-softokn.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-devel.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-devel.x86_64 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-freebl-devel.i686 3.14.3-9.el6 rhel-6-x86_64
nss-softokn-freebl-devel.x86_64 3.14.3-9.el6 rhel-6-x86_64
# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
/usr/local/nagios/bin/nrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
# yum install libssl.so.6 --nogpgcheck -y
# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
/usr/local/nagios/bin/nrpe: error while loading shared libraries: libwrap.so.0: cannot open shared object file: No such file or directory
# yum install libwrap.so.0 --nogpgcheck -y
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。