Make: *** [sapi/cli/php] Error1 solution

Source: Internet
Author: User
Tags crypt sapi
Make: *** [sapi/cli/php] Error1 1: makeclean has been considered. Problem 2: (an error occurs when apache is started after this method is used: /usr/local/apache2/modules/libphp5.so: undefinedsymbol: li...

 

It appears when php make is re-compiled and installed.

Make: *** [sapi/cli/php] Error 1

 

I. I have considered make clean. the problem persists.

II. (after this method is adopted, the following error occurs when apache is started:/usr/local/apache2/modules/libphp5.so: undefined symbol: libiconv_open.) The third method is used without any problem.

In "./configure"?] Do a good job of changing the environment value. The error occurs when "-o sapi/cli/php" is created? To the iconv function library parameter to be linked. Solution: edit Makefile my php5.2.5 in the 88 rows:

EXTRA_LIBS =-lcrypt-lrt-lmysqlclient_r-lgd-lfreetype-lpng-lz-ljpeg-lz-lresolv-lm-ldl-lnsl-lxml2-lz-lm-lxml2

-Lz-lm-lmysqlclient_r-lz-lcrypt-lnsl-lm-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm -lxml2-lz-lm-l

Crypt

Add-liconv at the end,

EXTRA_LIBS =-lcrypt-lrt-lmysqlclient_r-lgd-lfreetype-lpng-lz-ljpeg-lz-lresolv-lm-ldl-lnsl-lxml2-lz-lm-lxml2

-Lz-lm-lmysqlclient_r-lz-lcrypt-lnsl-lm-lxml2-lz-lm-lxml2-lz-lm-lcrypt-lxml2-lz-lm-lxml2-lz-lm -lxml2-lz-lm-l

Crypt-liconv

Make again.

 

III. (recommended)

Another method

Make ZEND_EXTRA_LIBS = '-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.