libiconv.so.2: cannot open shared object file解决办法

git安装完后,执行命令的时候出现:error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

解决办法如下:

1.在/etc/ld.so.conf中加一行/usr/local/lib,

 2.然后运行/sbin/ldconfig,文件解决,没有报错了~~




本文转自 shine_forever 51CTO博客,原文链接:http://blog.51cto.com/shineforever/315548

点赞