Tag: php

  • PHP configure: error: Please reinstall the libcurl distribution

    On Centos:
    sudo yum install libcurl-devel
    On Ubuntu:
    sudo apt-get install libcurl4-gnutls-dev

  • PHP configure: error: Cannot find FreeTDS in known installation directories

    On Centos:
    sudo yum install freetds-devel
    On Ubuntu:
    sudo apt-get install freetds-dev

  • PHP configure: error: mcrypt.h not found. Please reinstall libmcrypt

    On Centos:
    sudo yum install libmcrypt-devel
    On Ubuntu:
    sudo apt-get install libmcrypt-dev

  • PHP install from source errors

    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. 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
    #up2date -i gd-devel
    12. configure: error: Cannot find OpenSSL’s
    # yum install openssl-devel
    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
    # yum -y install libmcrypt-devel

  • PHP configure: error: png.h not found

    On Centos:
    sudo yum install libpng-devel
    On Ubuntu:
    sudo apt-get install libpng-dev

  • PHP configure: error: jpeglib.h not found

    On Centos:
    sudo yum install libjpeg-devel
    On Ubuntu:
    sudo apt-get install libjpeg-dev

  • PHP configure: Please reinstall readline – I cannot find readline.h

    On Centos:
    sudo yum install readline-devel
    On Ubuntu:
    sudo apt-get install libreadline-dev

  • PHP configure: error: freetype.h not found

    On Centos:
    sudo yum install freetype-devel
    On Ubuntu:
    sudo apt-get install libfreetype6-dev
    mkdir /usr/include/freetype2/freetype
    ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h

  • PHP configure: freetype-config not found

    On Centos:
    sudo yum install freetype-devel
    On Ubuntu:
    sudo apt-get install libfreetype6-dev

  • PHP configure: error: xml2-config not found. Please check your libxml2 installation.

    On Ubuntu:

    sudo apt-get install libxml2-dev

    On CentOS/RHEL:

    sudo yum install libxml2-devel