Undefined reference to ' libiconv_open cannot compile PHP

Source: Internet
Author: User

Workaround:
#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

Check PHP again to specify the location of the 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

Another solution for removing the Iconv module is to compile PHP normally, as follows:
Edit Makefile about 77 rows of places:
Extra_libs = ...-lcrypt
In the end, add-liconv, for example:
Extra_libs = ...-lcrypt-liconv
Run make again.

The last method: provided by tonyty163:

#make zend_extra_libs= '-liconv '
#make Install

Http://blog.chinaunix.net/uid-25266990-id-2915395.html

Undefined reference to ' libiconv_open cannot compile PHP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.