Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux libldap-2.4.so.2:无法打开共享对象文件:没有这样的文件或目录_Linux_Redhat_Openldap - Fatal编程技术网

Linux libldap-2.4.so.2:无法打开共享对象文件:没有这样的文件或目录

Linux libldap-2.4.so.2:无法打开共享对象文件:没有这样的文件或目录,linux,redhat,openldap,Linux,Redhat,Openldap,我试图卸载openldap,但现在我得到了什么命令 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 wh

我试图卸载openldap,但现在我得到了什么命令

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, May  1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

有人能告诉我如何解决此问题吗

最好向超级用户询问:
yum
找不到上面的文件,因此无法运行;您必须手动重新安装openldap(或至少是库),我不想手动安装,我以root用户身份登录到machinelocate yum binary中,使用
哪个yum
(应该是
/usr/{s}bin/yum
);运行
ldd yum_full_path
;如果它输出一行,如
libldap-2.4.so.2=>not found
,那么libldap是yum的运行时依赖项,必须安装它(或者如果可能的话,您可以重新编译yum删除ldap支持)#ldd/usr/bin/yum不是动态可执行文件,那么它是yum用于获取文件的模块之一,如curl(它使用ldap);无论如何,我认为libldap不是一个可选的库