I have been reconfiguring PHP on our servers (FC6/7) here in order to support PHP’s IMAP extension. I ran the usual ./configure command with –with-imap=shared –with-imap-ssl tagged on the end. At some point the configure failed, sI checked out what happened in the configure log.
$sudo cat config.log
It seems that the c-client development library was not installed – I had spotted these lines at the end of the log:
configure:46571:19: error: /mail.h: No such file or directory
configure:46590: checking for utf8_mime2text signature
configure:46608: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 46595 "configure"
#include "confdefs.h"
#include
#include
int main() {
SIZEDTEXT *src, *dst;
utf8_mime2text(src, dst);
; return 0; }
configure:46637: checking for U8T_CANONICAL
configure:46653: gcc -c -I conftest.c 1>&5
gcc: no input files
configure: failed program was:
#line 46642 "configure"
#include "confdefs.h"
#include
int main() {
int i = U8T_CANONICAL;
; return 0; }
The instructions about installing the library on the PHP site point people to the ftp repository in Washington – ftp://ftp.cac.washington.edu/imap/. I decided to try my luck and install it with Yum…
$sudo yum install libc-client-devel
It worked! So I re-ran the configure command. This time I got another error (albeit a minor one):
configure: error: This c-client library is built with Kerberos support.
Add --with-kerberos to your configure line. Check config.log for details.
How helpful was that! My final step was therefore to add –with-kerberos to the end of the configure command. Success!
No Comments on “IMAP Support on PHP 5.2.3”
You can track this conversation through its atom feed.