PHP 5.3.10 Compile installation when undefined reference to ' Libiconv ' Error resolution ____php

Source: Internet
Author: User
Tags fpm
The following error occurred while compiling the PHP installation manually

/usr/local/src/php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:73:undefined reference to ' Libiconv_open '
/usr/ local/src/php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:81:undefined reference to ' Libiconv '
/usr/local/src/ php-5.3.10/ext/xmlrpc/libxmlrpc/encodings.c:101:undefined reference to ' Libiconv_close '
Collect2:ld returned 1 Exit status Make
: * * * [SAPI/FPM/PHP-FPM] Error 1


On the surface, is Libiconv installation problem, libiconv after the problem is still, online to see someone to abandon the libiconv, the use of –without-iconv, I think it is not desirable, this is to avoid the problem.

Looking for a long time, finally found the location of the bug: after the execution./configure ... After that, revise the Makefile and find the

Extra_libs =-lcrypt-lz-lcrypt-lrt-lmysqlclient-lmcrypt-lldap-llber-lfreetype-lpng-lz-ljpeg-lcurl-lz-lrt-lm -ldl-lnsl-lrt-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lcurl-ldl-lgssapi_krb5-lkrb5-lk5crypto-lcom_err-lidn-lssl -lcrypto-lz-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm-l Xml2-lz-lm-lxml2-lz-lm-lcrypt


Add-liconv to the last side and modify the following

Extra_libs =-lcrypt-lz-lcrypt-lrt-lmysqlclient-lmcrypt-lldap-llber-lfreetype-lpng-lz-ljpeg-lcurl-lz-lrt-lm -ldl-lnsl-lrt-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lcurl-ldl-lgssapi_krb5-lkrb5-lk5crypto-lcom_err-lidn-lssl -lcrypto-lz-lxml2-lz-lm-lssl-lcrypto-ldl-lz-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm-l Xml2-lz-lm-lxml2-lz-lm-lcrypt-liconv


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.