Solution for: Imap support in php

demz

Verified User
Joined
Sep 7, 2006
Messages
78
Location
Holland, Den Haag
Trying to add --with-imap to your configure.php5 ?
and getting this error?

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing

Solution (worked for me, this was a dovecot machine):

1. yum install libc-client
2. yum install libc-client-devel
3. add:

--with-imap=/usr/lib/dovecot/imap \
--with-imap-ssl \

to: configure.php5 (custombuild/configure/ap2/)

4. ./build php y

Tada!
 
Thanx for the tutorial but I'm having this problem with my CentOS 5.2 server.

After following your directions, at the end of the compiling, I get this error:

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 31: --with-imap=/usr/lib/dovecot/imap: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

The /usr/lib/dovecot/imap directory does exist.
 
Last edited:
That means you do not have dovecot installed. To use the above method you have to convert to dovecot first.
 
I have the same problem:

/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 31: --with -imap=/usr/lib/dovecot/imap: No existe el fichero o el directorio

*** There was an error while trying to configure php. Check the configure/ap2/co nfigure.php5 file

I have dovecot installed in the server:

[root@server custombuild]# cd /usr/lib/dovecot/
[root@server dovecot]# ls
auth lib10_quota_plugin.la lib20_expire_plugin.so lib20_zlib_plugin.a
imap lib10_quota_plugin.so lib20_fts_plugin.a lib20_zlib_plugin.la
lda lib11_trash_plugin.a lib20_fts_plugin.la lib20_zlib_plugin.so
lib01_acl_plugin.a lib11_trash_plugin.la lib20_fts_plugin.so lib21_fts_squat_plugin.a
lib01_acl_plugin.la lib11_trash_plugin.so lib20_mail_log_plugin.a lib21_fts_squat_plugin.la
lib01_acl_plugin.so lib20_convert_plugin.a lib20_mail_log_plugin.la lib21_fts_squat_plugin.so
lib02_lazy_expunge_plugin.a lib20_convert_plugin.la lib20_mail_log_plugin.so pop3
lib02_lazy_expunge_plugin.la lib20_convert_plugin.so lib20_mbox_snarf_plugin.a
lib02_lazy_expunge_plugin.so lib20_expire_plugin.a lib20_mbox_snarf_plugin.la
lib10_quota_plugin.a lib20_expire_plugin.la lib20_mbox_snarf_plugin.so
[root@server dovecot]# cd imap
[root@server imap]# ls
lib01_acl_plugin.so lib11_imap_quota_plugin.la lib20_expire_plugin.so lib20_zlib_plugin.so
lib02_lazy_expunge_plugin.so lib11_imap_quota_plugin.so lib20_fts_plugin.so lib21_fts_squat_plugin.so
lib10_quota_plugin.so lib11_trash_plugin.so lib20_mail_log_plugin.so
lib11_imap_quota_plugin.a lib20_convert_plugin.so lib20_mbox_snarf_plugin.so


Any tip???
 
same prob :(

Check './configure --help' for available options

/usr/local/directadmin/customapache/configure.php_ap2: --with-imap=/usr/local/imap-2007e: not found

*** There was an error while trying to configure php. Check the configure.php file

# updatedb
# locate imap-2007e

(...)

/usr/local/imap-2007e/tools
/usr/local/imap-2007e/tools/Makefile
/usr/local/imap-2007e/tools/an
/usr/local/imap-2007e/tools/ua
/usr/local/imap-2007e/tools/uahelper.c

Does anyone already got a solution for this? Because it seems it is not only in Custombuild, because im using Customapache.

(I came here trough search function)
 
Last edited:
I'm getting the following error:

configure: error: Cannot find rfc822.h. Please check your c-client installation.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

server:/usr/local/directadmin/custombuild#

EDIT:
Lol my mistake! i didn't have libc-client-dev package installed! Damn i need some rest! (Debian 5 here, now testing the build ;) )

EDIT:
Unfortunately Imap extension didn't appear on phpinfo() :(
 
Last edited:
IMAP-2004c1 support i386
Code:
                yum install krb5-devel libc-client libc-client-devel -y
                wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
                tar xzf imapback-2004c1-x86.tar.gz
                cd imap-2004c1
                ./buildit
                cd c-client
                mkdir /usr/local/imap-2004c1/
                mkdir /usr/local/imap-2004c1/lib
                mkdir /usr/local/imap-2004c1/include
                cp *.h /usr/local/imap-2004c1/include
                cp *.c /usr/local/imap-2004c1/lib
                cp c-client.a /usr/local/imap-2004c1/lib
                ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a

IMAP-2004c1 support x86_64
Code:
                yum install krb5-devel libc-client libc-client-devel -y
                wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
                tar xzf imapback-2004c1-x86_64.tar.gz
                cd imap-2004c1
                ./buildit
                cd c-client
                mkdir /usr/local/imap-2004c1/
                mkdir /usr/local/imap-2004c1/lib
                mkdir /usr/local/imap-2004c1/include
                cp *.h /usr/local/imap-2004c1/include
                cp *.c /usr/local/imap-2004c1/lib
                cp c-client.a /usr/local/imap-2004c1/lib
                ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a
 
Worked perfectly on centos 5.3 by following steps in the 1st. post.

Needed it badly for WHMCS ticketing import...didn't seem to get email piping to work, so this certainly helps!
 
i came up with the /usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 31: --with-imap=/usr/lib/dovecot/imap: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


make sure that when you add the line to the configure.php5 that you add a \ to the end of the line above it..


eg --enable-mbstring becomes
--enable-mbstring \

then save and call the build command....
 
i came up with the /usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 31: --with-imap=/usr/lib/dovecot/imap: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


make sure that when you add the line to the configure.php5 that you add a \ to the end of the line above it..


eg --enable-mbstring becomes
--enable-mbstring \

then save and call the build command....

That was it! Thank you very much. :D
 
I have noticed that the imap module is named 2004, 2005 and sometimes 2007.
Does this mean that the 2007 versions i 2 years old?

EDIT: I checked it out, the 2007e version is from december 2008, and i have the 2007a version, that is from beginning of 2008. So, i guess i might need to upgrade it :)
 
Last edited:
Thank you very much!!

After so many days of search I finally found your thread. I got my php-imap working on centos 5.3 with directadmin custombuild. Thank you very much! :D
 
Thanks. I was looking at numerous pages that seemed very complicated, and after finding your post and the user who said his CentOS 5.3 went smoothly I gave it a try. Worked like a charm with my already-done custombuild on Centos.
 
Back
Top