Install PHP appear make: * * * [sapi/cli/php] Error 1 Solution

Source: Internet
Author: User
Tags install php sapi

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
[Root@test php-5.2.13]# VI Makefile

In the installation of PHP to the system when the "undefined reference to Libiconv_open '" error message, which means that in "./configure" did not do a good job of some environmental values. The point at which the error occurred was an error in establishing the "-o sapi/cli/php", and did not give the ICONV function library parameter to link. Workaround: Edit makefile about 77 lines: Extra_libs = ...-lcrypt at the end add-liconv, for example: Extra_libs = ...-lcrypt-liconv and then again make that Can

or in another way.

Make zend_extra_libs= '-liconv '

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

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.