Error Configuring PHP With IMAP Support

#1
Trying to compile PHP5.6 for LSWS '--with-imap=shared' '--with-imap-ssl' and I get:

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
**ERROR** Could not configure PHP build

I've got packages installed...

lsphp56 lsphp56-common lsphp56-mysql lsphp56-gd
lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp5
6-imap lsphp56-soap lsphp56-bcmath

libc-client libc-client-devel

Not sure if I need uw-imap-devel and uw-imap but when I try to install those I get:

Resolving Dependencies
--> Running transaction check
---> Package uw-imap.x86_64 0:2007f-4.el7.1 will be installed
--> Processing Dependency: xinetd for package: uw-imap-2007f-4.el7.1.x86_64
--> Running transaction check
---> Package xinetd.x86_64 2:2.3.15-13.el7 will be installed
--> Processing Conflict: courier-imap-2.1.2-134.rhe7x.iworx.x86_64 conflicts u
w-imap
--> Finished Dependency Resolution
Error: courier-imap conflicts with uw-imap-2007f-4.el7.1.x86_64
 

NiteWave

Administrator
#2
it's advised to use lsphp package as much as possible, avoid compiling lsphp yourself.

I installed lsphp56-imap in a cent box, then in phpinfo page, it shows:
IMAP c-Client Version 2007f
SSL Support enabled
Kerberos Support enabled

so it already meet your target: '--with-imap=shared' '--with-imap-ssl' ?
 
#3
it's advised to use lsphp package as much as possible, avoid compiling lsphp yourself.

I installed lsphp56-imap in a cent box, then in phpinfo page, it shows:
IMAP c-Client Version 2007f
SSL Support enabled
Kerberos Support enabled

so it already meet your target: '--with-imap=shared' '--with-imap-ssl' ?
Package lsphp56-imap-5.6.30-1.el7.centos.x86_64 already installed and latest v
ersion
 
#5
The answer is to install these packages:
libc-client
uw-imap-devel
uw-imap-static
uw-imap-utils

Then run: ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a

Then compile with...
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos'
 
Top