View Full Version : Solution for: Imap support in php
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!
desynced
01-22-2009, 02:38 PM
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.
floyd
01-23-2009, 05:04 AM
That means you do not have dovecot installed. To use the above method you have to convert to dovecot first.
Cenys
01-29-2009, 03:41 AM
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???
Spetterpoep
02-02-2009, 09:12 AM
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)
panosru
05-01-2009, 12:10 PM
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() :(
daveyw
05-02-2009, 02:55 AM
IMAP-2004c1 support i386
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
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
panosru
05-02-2009, 05:26 AM
I tried this too but still imap does not appear on phpinfo() :(
rocketcity
05-04-2009, 07:22 PM
Has anyone been able to get this to work with php5 cgi ?
agnivo007
05-12-2009, 02:20 AM
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!
BinaryKitten
06-01-2009, 04:04 PM
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....
desynced
06-12-2009, 05:02 PM
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
kirstin
06-13-2009, 05:41 AM
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 :)
BinaryKitten
06-26-2009, 12:25 PM
That was it! Thank you very much. :D
No problems.. it eluded me as well. bring on php 5.3 .. :)
aquila
05-17-2010, 08:04 AM
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
Codefighter
06-29-2010, 09:30 PM
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.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.