Linux Compile install PHP and compile install MySQL common error summary and solution

Source: Internet
Author: User
Tags install php mcrypt mysql client

First, compile and install PHP Common error Summary and solutions

Error 1
Checking for Xml2-config path ...
Configure:error:xml2-config not found. Please check your LIBXML2 installation.
Workaround :
# yum-y Install Libxml2-devel

Error 2

Checking for BZIP2 in default path ... not found
Configure:error:Please Reinstall the BZIP2 distribution
Workaround:
# yum Install-y bzip2-devel

Error 3
If Configure fails try–with-vpx-dir=
Configure:error:png.h not found.

Workaround:
# yum-y Install Libpng-devel

Error 4
If Configure fails try–with-xpm-dir=
Configure:error:freetype.h not found.

Workaround:
# yum-y Install Freetype-devel

Error 5
Checking for specified location of the MySQL UNIX socket ... no
Configure:error:Cannot find MySQL header files Under/usr/local/mysql.
Note that the MySQL client library isn't bundled anymore!

Workaround:
Install MySQL

Error 6
Configure:error:mcrypt.h not found. Please reinstall Libmcrypt.

workaround : Install Libmcrypt
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
TAR-ZXVF libmcrypt-2.5.7.tar.gz
CD libmcrypt-2.5.7
Mkdir-p/USR/LOCAL/LIBMCRYTP
./configure prefix=/usr/local/libmcrytp/
Make
Make install

Linux Compile install PHP and compile install MySQL common error summary and solution

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.