Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-20-2015, 01:16 PM   #1
Registered: Jun 2014
Distribution: Debian 9.6
Posts: 68

Rep: Reputation: Disabled
Installing php 5.6.9 from source


I have problem with installing latest php 5.6.9 from source.
I followed this tutorial:

I have 64bit version so i installed libc-client-devel.x86_64

But after that. during compiling i get error:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
I tried locate libc-client.a , but with no luck.

Then i found this:

So i removed libc-client-2007e-11.el6.x86_64 and libc-client-devel-2007e-11.el6.x86_64 because versions are different (there are 2007e-10)

On CentOS 64-bit, if you see the error:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

and cannot find libc-client.a anywhere on your box:
locate libc-client.a

Download a uw-imap src.rpm from the internet. They can be found on, eg:

Then type (using the relevant src.rpm package url for your system, when possible):
rpmbuild --rebuild uw-imap-2007e-10.el6.src.rpm
cd /usr/src/redhat/RPMS/x86_64/
rpm -ivh uw-imap-static-2007e-10.el6.x86_64.rpm uw-imap-devel-2007e-10.el6.x86_64.rpm libc-client-2007e-10.el6.x86_64.rpm

Note, you may need to remove the newer version of libc-client and libc-client-devel, if the above conflict.
Also, link the .a file:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a
After that during compiling i see error:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
I saw that i don't have libc-client-devel but can't find libc-client-devel-2007e-10.el6.x86_64 i only found 2007e-11

If i yum remove libc-client libc-client-devel
and then yum install libc-client libc-client-devel uw-imap uw-imap-utils

I see:
 libc-client                           x86_64                     2007e-11.el6                        base                     515 k
 libc-client-devel                     x86_64                     2007e-11.el6                        base                      56 k
 uw-imap                               x86_64                     2007e-14.el6                        epel                      72 k
 uw-imap-utils                         x86_64                     2007e-14.el6                        epel                      52 k
They are different version and different repos.
I can't find libc-client libc-client-devel uw-imap uw-imap-utils in same version.
And i have no any ideas what to do now.

Please help
Old 05-22-2015, 04:31 AM   #2
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You may try installing php from source using instructions from BLFS.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing apache,php and mysql from source in Linux tarunchawla Linux - Software 3 10-10-2013 08:34 AM
installing php from the source tajamari Linux - Server 2 10-28-2008 06:44 AM
Installing php source and rpm sucram2g Linux - Software 1 02-17-2007 03:22 AM
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
Problems installing Apache/PHP from source minorgod Mandriva 0 09-11-2004 07:45 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration