error while loading shared libraries: libiconv.so.2 : cannot open shared object file: No such file or directory

编译安装完php-fpm,启动时报错: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,文件解决,没有报错了~~
快速命令:

posted @ 2017-11-30 10:56  yangrz  阅读(4276)  评论(0编辑  收藏  举报