报错:libiconv.so.2: cannot open shared object file: No such file or directory

栏目: Python · 发布时间: 7年前

内容简介:刚才新开一个VPS,执行 yum 命令时,报错:方法:给libiconv.so.2做个软件链接参考:

刚才新开一个VPS,执行 yum 命令时,报错:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libiconv.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.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

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

方法:给libiconv.so.2做个软件链接

参考: https://blog.csdn.net/jk110333/article/details/7556626

ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

遇见这个错误说明没找到libiconv.so.2文件

1. 查看/usr/local/lib下是否有这个库文件,有的话说明已经安装了libiconv,没有说明没有安装

2. 若没有安装就下载个安装包,安装好,再测试。参考: http://amon.org/libiconv

3. 若已经安装:在/etc/ld.so.conf中添加/usr/local/lib,再执行一下ldconfig;或者做一个软连接。测试是否可行。


以上所述就是小编给大家介绍的《报错:libiconv.so.2: cannot open shared object file: No such file or directory》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

An Introduction to Genetic Algorithms

An Introduction to Genetic Algorithms

Melanie Mitchell / MIT Press / 1998-2-6 / USD 45.00

Genetic algorithms have been used in science and engineering as adaptive algorithms for solving practical problems and as computational models of natural evolutionary systems. This brief, accessible i......一起来看看 《An Introduction to Genetic Algorithms》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具