記錄 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
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- CentOS7提示 libsasl2.so.2: cannot open shared object fileCentOSObject
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- 影片匯聚平臺EasyCVR啟動出現報錯“cannot open shared object file”的原因排查與解決VRObject
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- iostat -n來統計NFS讀寫資訊時碰到了Cannot open /proc/self/mountstats: No such file or directoryiOSNFS
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- docker容器掛載 No such file or directoryDocker
- gitbook no such file or directory 怎麼解決Git
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or directoryLaravelUIPHPAI
- Can't open file: (errno: 24)
- WPF open image and print as pdf file
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- open_basedir() restrictijon in effect. FIle()REST
- Linux open file與 fs-maxLinux
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- cannot find trajectory file at ./examples/trajectory.txt
- “no source“: Error: #5: cannot open source input file “C:\Users\xxx\AppData\Local\Temp\p4228: PermiErrorAPP
- [20181214]open file using O_DIRECT.txt
- 在 Linux 中執行.sh 指令碼 No such file or directoryLinux指令碼
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- ssh-add 報錯:Error connecting to agent No such file or directoryError