General Tips

PHP compilation errors-Linux, Work Arounds E-mail

PHP recompilation errors:


Here are some command errors which occur while installing/compiling/building PHP 5 manually on Linux Servers, you can fix them by installing appropriate development modules.

1) Configure: error: xml2-config not found. Please check your libxml2 installation.

Solutions :

#yum install libxml2-devel

2) Checking for pkg-config... /usr/bin/pkg-config configure: error: Cannot find OpenSSL's <evp.h>

Solutions :

#yum install openssl-devel

3) Configure: error: Please reinstall the BZip2 distribution

Solutions :

#yum install bzip2-devel

4) Configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/

Solutions :

# yum install curl-devel

5) Configure: error: libjpeg.(also) not found.

Solutions :

# yum install libjpeg-devel

6) Configure: error: libpng.(also) not found.

Solutions :

# yum install libpng-devel

7) Configure: error: freetype.h not found.

Solutions :

#yum install freetype-devel

8) Configure: error: Unable to locate gmp.h

Solutions :

# yum install gmp-devel

9) Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!

Solutions :

# yum install mysql-devel

10) Configure: error: Please reinstall the ncurses distribution

Solutions :

# yum install ncurses-deve

12) Configure: error: Cannot find pspell

Solutions :

# yum install pspell-devel


13) Configure: error: snmp.h not found. Check your SNMP installation.

Solutions :

# yum install net-snmp-devel


Thank you :-)