Web Hosting Talk







View Full Version : PHP Configure Error


WALoeIII
11-01-2002, 04:06 AM
I'm trying to configure PHP with the following flags:
./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-imap --with-gettext --with-xml --with-ldap

I get this error:
configure: error: Cannot find rfc822.h. Please check your IMAP installation.

When I run a locate command I find that file no problem:
$ locate rfc822.h
/var/src/courier-imap-1.4.6/rfc822/rfc822.h
/var/src/courier-imap-1.4.6/rfc822/rfc822.html
/var/src/sqwebmail-3.3.4/rfc822/rfc822.h
/var/src/sqwebmail-3.3.4/rfc822/rfc822.html
/var/src/maildrop-1.4.0/rfc822/rfc822.h
/var/src/maildrop-1.4.0/rfc822/rfc822.html
/var/src/maildrop-1.4.0/rfc822.html
/usr/local/share/maildrop/html/rfc822.html


Obviously the webpages aren't relevant, but the file is clearly there! What gives? I need IMAP support for IMP.

mind21_98
11-01-2002, 10:36 AM
Try copying rfc822.h to /usr/include. It should compile fine then.

WALoeIII
11-01-2002, 03:29 PM
It got further along in the configuration than threw another IMAP related error:
configure: error: Cannot find imap library. Please check your IMAP installation.

ffeingol
11-01-2002, 04:11 PM
Usually you can do:

--with-imap=/some/dir/

where "/some/dir/" would be the top level directory where your IMAP stuff is installed.

Frank

WALoeIII
11-01-2002, 05:11 PM
I set that to be /usr/lib/courier-imap and /usr/lib/courier-imap/bin and it still hangs in the same place. Thats where my IMAP server is installed.

Voodoo Web
11-01-2002, 08:01 PM
To compile PHP with IMAP support you have to install the c-client library. url where you can get this lib ftp://ftp.cac.washington.edu/imap/

- dom

WALoeIII
11-01-2002, 10:56 PM
I did make lrh and it installed completely and then tried to re-comple php and again it didn't work.

ffeingol
11-02-2002, 12:27 AM
Snoozy,

Just wondering what you're going to be using that needs IMAP support?

Frank

WALoeIII
11-02-2002, 07:14 PM
http://www.horde.org/imp/