/var/tools/php-5.6.17/ext/iconv/iconv.c:2512: undefined reference to libiconv_open’ ext/xmlrpc/libxmlrpc/encodings.o: In functionconvert’: /var/tools/php-5.6.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to libiconv_open’ /var/tools/php-5.6.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference tolibiconv’ /var/tools/php-5.6.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close’ collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 在阿里云安装php时,make的时候,发生了libiconv错误,通过安装libiconv,指定with-iconv-dir也没解决。最终是在make时加了一个参数,然后顺利编译通过的。 make ZEND_EXTRA_LIBS=‘-liconv’
阅读全文

编译php时出现错误 编译php时出现错误 是由于没有安装 libiconv包,又没有yum源,无法通过yum直接安装,还需要自己手动来。 先安装libiconv: wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar -zxvf libiconv-1.14.tar.gz cd libiconv-1.14 ./configure –prefix=/usr/local make sudo make install 然后重新configure php,再make就ok.. ./configure –with-iconv=/usr/local make clean make
阅读全文

作者的图片

DigDeeply

Technology Stack: PHP/Openresty/GoLang, and so on…

Web Develop Eneigneer

Beijing China