Error compiling PHP 5.3.8: Make: * * * [SAPI/FPM/PHP-FPM] Error 1

Source: Internet
Author: User
Tags fpm sapi

When compiling PHP 5.3.6, you will encounter undefined reference to ' Libiconv_open ' compilation errors, here are several solutions:
First, reinstall Libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
TAR-ZXVF libiconv-1.13.1.tar.gz cd libiconv-1.13.1./configure
Make
Make install

Second, remove the Iconv module and then compile the application:
Use the./configure–help to view the parameters to see how the specific application removes Iconv compilation, for example, the following is a OPENCC, Iconv-free compilation method: OPENCC:./configure cflags=-liconv again as PHP compiles, Libiconv compilation options can be removed by ZEND extension parameters at make zend_extra_libs= '-liconv ' make install

Third, Iconv repeated installation in different directories, resulting in include file iconv.h, such as repeated through Find/-name "iconv.h" if found to more than 2 return results, the Iconv repeated installation, uninstall redundant version can be compiled normally.

Four.
Another solution for the removal of iconv modules can also be normal compiler PHP, as follows:
Edit Makefile about 77 lines around the place:
Extra_libs = ...-lcrypt
Add-liconv at the end, for example:
Extra_libs = ...-lcrypt-liconv
Run make on it again.

Finally, solve the problem with the second method



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.