Meet this error description did not find the libiconv.so.2 file
1: Check if there is a library file under/usr/local/lib, some words indicate that the LIBICONV has been installed, no description is not installed
2: If not installed, download the installation package, install, and then test
3: If installed, there are two ways to solve
A: Add/usr/local/lib in/etc/ld.so.conf, then execute ldconfig, test is feasible
B: Make a software link to libiconv.so.2
Ln-s/usr/local/lib/libiconv.so.2/usr/lib/libiconv.so.2
Special attention:
A: Add/usr/local/lib in/etc/ld.so.conf, then execute ldconfig
In this step, when you open the/etc/ld.so.conf file with vim, the default is one line
Include ld.so.conf.d/*.conf
When adding, don't be smart to add as:
Include/usr/local/lib
The right approach should be:
/usr/local/lib
CentOS compiler php5.3 Error: Libiconv.so.2:cannot open Shared object file:no such file or directory