Error compiling a php 5.6.20 on a Centos 6.7

Discussion in 'Server Operation' started by Christovampaynes, Apr 8, 2016.

  1. Hello guys.

    I'm compiling a php 5.6.20 on a Centos 6.7.
    I have the following error:

    configure: error: Can not find IMAP library (libc-client.a). Please check your c-client installation.

    In searching the internet I found a way to build the imap library in version Centos 6.7 .

    Does anyone know how to solve?
    Thank you.
     
  2. imort

    imort New Member

    Hey
    Why do you need to compile PHP at all?
    You can add EPEL repository and install PHP 5.6 just like that:

    Code:
    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
    rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
    And then you can install PHP 5.6:

    Code:
    yum install php56w
    You can also look here for similar questions.
     
  3. florian030

    florian030 Well-Known Member HowtoForge Supporter

    --with-libdir=lib64 during configure should solve this
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Why do you want to force all websites to use the same php-version? There is a big difference between the php-version of the server and additional php-versions for websites.
     

Share This Page