collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
[root@localhost php-5.3.2]#
这样是make不成功的,这是因为机器上没有安装iconv,安装后再编绎即可,我的解决步骤是这样的:
先安装iconv:
1 2 3 4 5 | wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz tar -zxvf libiconv-1.13.1.tar.gz cd libiconv-1.13.1 ./configure --prefix=/usr/local make && make install |
接下来再编绎php的时候加上–with-iconv=/usr/local/
[root@localhost php-5.3.2]# make clean
再配置编译