我使用Centos 6.5服务器,openldap安装在此服务器中。
我只想通过以下命令将vsftpd安装到此服务器,但它会弹出错误。
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:11:10)
[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:
http://yum.baseurl.org/wiki/Faq
我也检查过,安装了openldap。
openldap-2.4.39-8.el6.i686
会建议为什么它弹出似乎与libldap-2.4.so.2相关的错误?我的openldap有问题吗?
由于
答案 0 :(得分:0)
基本上,做一个
yum provides libldap-2.4.so.2
然后安装它所推荐的内容,例如
[user@localhost ~]$ yum provides libldap-2.4.so.2
Loaded plugins: fastestmirror, langpacks
....
openldap-2.4.40-8.el7.i686 : LDAP support libraries
Repo : base
Matched from:
Provides : libldap-2.4.so.2
所以运行
yum install openldap-2.4
如果没有找到,那么你可能需要epel或其他一些回购。 (我有repos:base,epel,extras,nux-dextop和更新,它被发现)