编译PHP 出现 undefined…

来源:互联网 发布:淘宝秒杀有关的句子 编辑:程序博客网 时间:2024/06/05 09:08
ext/xmlrpc/libxmlrpc/.libs/encodings.o:In function `convert':
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:73:undefined reference to `libiconv_open'
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:81:undefined reference to `libiconv'
/root/php-5.2.12/ext/xmlrpc/libxmlrpc/encodings.c:101:undefined reference to `libiconv_close'
collect2: ld returned 1exit status
make: *** [sapi/cli/php]?.. 1


处理方法:
./configure ............

viMakefile
找到下面这行:
EXTRA_LIBS = -lcrypt ...
在最后添加-liconv
保存后make通过;make install通过。
原创粉丝点击