Make: *** [sapi/cli/php] Error1 solution _ PHP Tutorial

Source: Internet
Author: User
Tags crypt
Make: *** [sapicliphp] Error1 solution. When re-compiling and installing php make, make: *** [sapicliphp] Error1 1: makeclean has been considered. Problem 2: (after this method is used, an error occurs when apache is started: usrlocal appears when you re-compile and install php make.

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", the environment variable value is not fixed. The error occurs when "-o sapi/cli/php" is created. The iconv function parameters to be linked are not provided. 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'

Composer make: *** [sapi/cli/php] Error 1 1: make clean is considered. Problem 2: (after this method is adopted, an Error occurs when apache is started: /usr/local /...

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.