欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

undefined reference to libiconv_open',libiconvopen_PHP教程

程序员文章站 2024-02-05 09:10:10
...

undefined reference to libiconv_open',libiconvopen

ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':
/home/king/php-5.2.13/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

解决方法:

make ZEND_EXTRA_LIBS='-liconv'

ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1128119.htmlTechArticleundefined reference to libiconv_open,libiconvopen ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':/home/king/php-5.2.13/ext/iconv/iconv.c:2491: undefined refe...