libxml2.so.2: 无法打开共享对象文件: 没有那个文件或目录。

3
我将使用中文进行翻译:

我正在使用Centos,意外地删除了libxml2,现在显示以下错误:

导致此问题的错误是:需要运行yum所需的Python模块之一无法导入。

libxml2.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.4.3 (#1, Jun 18 2012, 08:55:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

你尝试过通过运行 sudo yum install libxml2 重新安装libxml2吗? - undefined
1个回答

3

您需要重新安装libxml2软件包。由于yum在您的系统上目前无法使用,您需要通过其他方式获取libxml2软件包,例如在另一个(可用)系统上使用yumdownloader获取,或者访问您的存储库网站或从其中一个CentOS镜像获取。例如,这里是一个链接到i386架构下CentOS5.9版本的libxml2 rpm软件包的示例。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接