PHP

Known configure errors with php

1. Configure: error: Please reinstall the BZip2 distribution
# yum install bzip2-devel
2. Configure: error: DBA: Could not find necessary header file(s).
# yum install gdbm-devel
# yum install db4-devel
3. Configure: error: libjpeg.(a|so) not found.
# yum install libjpeg-devel
4. Configure: error: libpng.(a|so) not found.
# yum install libpng-devel
5. Configure: error: freetype.h not found.
# yum install freetype-devel
6. configure: error: Please reinstall the libcurl distribution
# yum install curl
# yum install curl-devel
7. Configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
# yum install libxslt-devel >>>> fixed
8. xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel
9. Kalau error Perl-URI
#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/perl-URI-1.35-3.noarch.rpm
#rpm -i perl-URI-1.35-3.noarch.rpm
10. Configure: error: utf8_mime2text() has new signature
#yum install libc-client-devel
11. Configure: error: libXpm.(a|so) not found.
# yum install gd-devel
atau
#up2date -i gd-devel
12. configure: error: Cannot find OpenSSL’s
# yum install openssl-deve
13. Checking for PCRE headers location… configure: error: Could not find pcre.h in /usr
# yum install pcre-devel
14. Configure: error: Unable to locate gmp.h
# yum install gmp-devel
15. configure: error: Cannot find pspell
# yum install aspell-devel
16. The ‘links’ package is required for this functionality.
# yum search links
# yum install elinks
17. Error : [warn] module php5_module is already loaded, skipping
# edit httpd.conf terus Uncomment : #LoadModule php5_module modules/libphp5.so
18. Configure: error: Did not find pcre-config script at /usr/local
# yum -y install pcre-devel
19. warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
# rpm -import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
ERROR: cannot restore segment prot after reloc: Permission denied
Solution:
chcon -t texrel_shlib_t /etc/httpd/modules/libphp5.so
20. Configure: error: mcrypt.h not found. Please reinstall libmcrypt