Some typical errors and workarounds for compiling PHP under CentOS.

Source: Internet
Author: User
Tags install openssl ming

Configure: Error: xml2-config not found. Please check your LIBXML2 installation.
Yum Install Libxml2-devel

Configure: Error: cannot find OpenSSL ' s
Yum Install Openssl-devel

Configure: Error: Please reinstall the LIBCURL distribution-


easy.h should be in/include/curl/
yum Install curl-devel

Configure: Error: libjpeg. (A|SO) not found
Yum Install Libjpeg-devel

Configure: Error: libpng. (A|SO) not found.
Yum Install Libpng-devel

Configure: Error: libxpm. (A|SO) not found.
Yum Install Libxpm-devel

Configure: Error: freetype.h not found.
Yum Install Freetype-devel

Configure:   error:   Utf8_mime2text () has a new signature, but U8t_canonical is missing. This should is not happen. Check Config.log For additional information.
Yum Install libc-client-devel

Configure: Error: mcrypt.h not found. Please reinstall Libmcrypt.
Yum Install Libmcrypt-devel

Configure: Error: Please reinstall Libmhash–i cannot find MHASH.H
Yum Install Mhash-devel

Configure:   error:   cannot find MySQL header files under/usr.
Note The MySQL client library is not bundled anymore!
Yum Install mysql-devel

Configure: Error: Please reinstall Ming Distribution. Libming. (A|SO) not found
-Temp Remove the config for ' –with-ming=/opt/ming/'

Configure: Error: cannot find Pspell
Yum Install Pspell-devel

Configure:   error: &NBSP cannot find mm library
Download from http://www.ossp.org/pkg/lib/mm/
wget ftp://ftp.ossp.org/pkg/ lib/mm/mm-1.4.2.tar.gz
Extract it:  tar-zxvf mm-1.4.2.tar.gz
./configure
Make
make install

Configure:   error: &NBSP cannot find Libtidy
Yum install libtidy-devel
Yum install libtidy
Change path at   Configure:   ' –with-tidy=/usr '

Configure: Error: not found. Please reinstall the expat distribution.
Yum Install Expat-devel

Configure: Error: xslt-config not found. Please reinstall the LIBXSLT >= 1.1.0 distribution
Yum Install Libxslt-devel

*tips:to Uninstall, just enter:
Yum Remove {Package-name}

Some typical errors and workarounds for compiling PHP under CentOS.

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.