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

  1. 云栖社区>
  2. 博客>
  3. 正文

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

rrr1111 2014-07-23 20:24:00 浏览816
展开阅读全文
错误信息: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/500
评论
rrr1111
+ 关注