undefined reference to libiconv_open ext/iconv/.libs/iconv.o by install phpsource

来源:互联网 发布:windows中的文件属性 编辑:程序博客网 时间:2024/05/29 16:04
错误信息:ext/iconv/.libs/iconv.o(.text+0x30e2): In function `php_iconv_stream_filter_factory_create':/home/jjdai/work/zhupiter/php-5.2.0/ext/iconv/iconv.c:2419: undefined reference to `libiconv_open'collect2: ld returned 1 exit statusmake: *** [sapi/cli/php] Error 1解决办法:#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/libiconv# make# make install再检查php,指定 iconv的位置 --with-iconv=/usr/local/libiconv#./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-curl --with-gd --enable-gd-native-ttf --with-apxs2=/usr/local/apache/bin/apxs --enable-sockets --with-iconv=/usr/local/libiconv#make#make install
0 0