記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directory
[root@sht-sgmhadoopcm-01 ~]# rpm -qa|grep openldap
openldap-2.4.23-32.el6_4.1.x86_64
openldap-devel-2.4.23-32.el6_4.1.x86_64
openldap-clients-2.4.23-32.el6_4.1.x86_64
openldap-servers-2.4.23-32.el6_4.1.x86_64
openldap-servers-sql-2.4.23-32.el6_4.1.x86_64
[root@sht-sgmhadoopcm-01 ~]# rpm -e openldap-* --nodeps
warning: /etc/openldap/ldap.conf saved as /etc/openldap/ldap.conf.rpmsave
[root@sht-sgmhadoopcm-01 ~]# rpm -qa|grep openldap
openldap-devel-2.4.23-32.el6_4.1.x86_64
openldap-clients-2.4.23-32.el6_4.1.x86_64
openldap-servers-2.4.23-32.el6_4.1.x86_64
openldap-servers-sql-2.4.23-32.el6_4.1.x86_64
[root@sht-sgmhadoopcm-01 ~]# rpm -e openldap-servers-sql-2.4.23-32.el6_4.1.x86_64
[root@sht-sgmhadoopcm-01 ~]# rpm -e openldap-servers-2.4.23-32.el6_4.1.x86_64
warning: /etc/sysconfig/ldap saved as /etc/sysconfig/ldap.rpmsave
[root@sht-sgmhadoopcm-01 ~]# rpm -e openldap-clients-2.4.23-32.el6_4.1.x86_64
[root@sht-sgmhadoopcm-01 ~]# rpm -e openldap-devel-2.4.23-32.el6_4.1.x86_64
[root@sht-sgmhadoopcm-01 ~]#
[root@sht-sgmhadoopcm-01 ~]# rpm -qa|grep openldap
[root@sht-sgmhadoopcm-01 ~]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libldap-2.4.so.2: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
[root@sht-sgmhadoopcm-01 ~]#
2.解決辦法:下載openldap-2.4.23-32.el6_4.1.x86_64.rpm,校驗MD5,再強制安裝
[root@sht-sgmhadoopcm-01 ~]# wget
[root@sht-sgmhadoopcm-01 ~]# rpm -v --checksig ./openldap-2.4.23-32.el6_4.1.x86_64.rpm
./openldap-2.4.23-32.el6_4.1.x86_64.rpm:
Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Header SHA1 digest: OK (2c80a5928199d9ac370b1def5d131ccdf18db585)
MD5 digest: OK (a81248ad1f3e81b043a360b2d93ef404)
V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
[root@sht-sgmhadoopcm-01 ~]# rpm -ivh --force --nodeps openldap-2.4.23-32.el6_4.1.x86_64.rpm
warning: openldap-2.4.23-32.el6_4.1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing... ########################################### [100%]
1:openldap ########################################### [100%]
[root@sht-sgmhadoopcm-01 ~]# yum
Loaded plugins: fastestmirror, security
You need to give some command
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
update-minimal Works like update, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2129021/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- libiconv.so.2: cannot open shared object file: No such filObject
- opensuse13.1 安裝chrome報 error while loading shared libraries:libudev.so.0:cannot open shared object file:no file or directoryChromeErrorWhiledevObject
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or diErrorWhileObject
- while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or dirWhilethreadObject
- 解決ImportError: libmysqlclient_r.so.16: cannot open shared object fileImportErrorIBMMySqlclientObject
- 11.2.0.3 rac on redhat 6.2 libcap.so.1: cannot open shared object fileRedhatObject
- 11.2.0.4 rac on redhat 6.5 libcap.so.1: cannot open shared object fileRedhatObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- 安裝grid時報錯:libXext.so.6: cannot open shared object fileObject
- RAC執行root.sh報libcap.so.1: cannot open shared object fileObject
- oracle安裝報錯libawt.so:libXP.so.6:cannot open shared object fileOracleObject
- Nagios監控mysql從庫報錯:libmysqlclient.so.18: cannot open shared object fileiOSMySqlIBMclientObject
- 裝10gRAC遇到的libpthread.so.0: cannot open shared object file問題threadObject
- /lib/i386/libawt.so: libXp.so.6: cannot open shared object fileObject
- (轉)RAC srvctl 命令報 libpthread.so.0 cannot open shared object file解決辦法threadObject
- EM 10g Grid Control Fails With 'libdb.so.2: cannot open shared object file:AIObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- Redhat5下安裝ORACLE10.2.0.1報錯“libXp.so.6: cannot open shared object file”RedhatOracleObject
- 【問題處理】啟動OUI丟擲libXp.so.6: cannot open shared object file問題處理UIObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- /jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file問題處理Object