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

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

First, Compiling the installation Summary of common errors in PHP and Solutions

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

error 2

checking for BZIP2 in default Path ... not found
configure:error: Please reinstall the BZIP2 distribution
solution: Span style= "font-family: ' The song Body '; Color:rgb (64,64,64); letter-spacing:0;font-size:14px;" >

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

workaround:

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.

Solutions: Installing 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

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.