git: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
如果执行 git --version 的时候,提示
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,文件解决,没有报错