Home >Backend Development >PHP Tutorial >undefined reference to libiconv_open',libiconvopen_PHP教程

undefined reference to libiconv_open',libiconvopen_PHP教程

WBOY
WBOYOriginal
2016-07-12 08:51:48833browse

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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn