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,文件解决,没有报错了~~
快速命令:
1
1
1
echo '/usr/local/lib' >> /etc/ld.so.conf && /sbin/ldconfig