Compile and install php5.6.30 error

Source: Internet
Author: User
Tags fpm sapi


[Email protected]_id01_u4_19.116 software]# cat/etc/redhat-release
CentOS Release 6.8 (Final)
...
Compile error: Make: * * [sapi/cli/php] Error 1
  • Analysis
    An error message appears in the [undefined reference to Libiconv_open '] subclass when compiling and installing PHP, indicating that the./configure did not grasp the environment variable value, the error occurred in the establishment of [-O-sapi/cli/php], did not give to Li The ICONV function library parameter for NK.



  • Solve
    Edit Makefile File: Extra_libs = ...-lcrypt in the end add-liconv, for example: Extra_libs = ....-lcrypt-liconv and then re-make again.


  • Extended
    The PHP installation does not php-fpm related files, this is the compilation parameter is less--ENABLE-FPM


  • Compile parameters

./configure \
--prefix=/usr/local/software/php5.6.30 \
--with-mysql=/usr/local/software/mysql \
--WITH-APXS2=/USR/LOCAL/SOFTWARE/APACHE2/BIN/APXS \
--with-iconv-dir=/usr/local/libiconv \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir=/usr\
--enable-xml \
--disable-rpath \
--enable-safe-mode \
--enable-bcmath \
--ENABLE-SHMOP \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--with-curlwrappers \
--enable-mbregex \
--ENABLE-FPM \
--enable-mbstring \
--with-mcrypt \
--WITH-GD \
--ENABLE-GD-NATIVE-TTF \
--WITH-OPENSSL \
--with-mhash \
--ENABLE-PCNTL \
--enable-sockets \
--WITH-XMLRPC \
--enable-zip \
--ENABLE-SOAP \
--enable-short-tags \
--enable-zend-multibyte \
--enable-static \
--with-xsl \
--WITH-FPM-USER=WWW \
--with-fpm-group=www\
--ENABLE-FTP \


You feel helpful, like Bai:)

Compile and install php5.6.30 error

Related Article

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.