LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   imap installation problem (https://www.linuxquestions.org/questions/linux-software-2/imap-installation-problem-458060/)

turab 06-25-2006 03:05 AM

imap installation problem
 
Hello friends,
I need your help regarding imap installation. I have downloaded the source code from ftp://ftp.cac.washington.edu/imap/im...06221518.tar.Z
and saved it at /usr/local

#tar -zxvf imap-2006.DEV.SNAP-0606221518.tar.Z
#cd imap-2006.DEV.SNAP-0606221518
#make lnp SSLTYPE=none
#mkdir include
#mkdir lib
#cp /usr/local/imap-2006.DEV.SNAP-0606221518/c-client/*.h /usr/local/imap-2006.DEV.SNAP-0606221518.tar.Z/c-client/include

#cp /usr/local/imap-2006.DEV.SNAP-0606221518/c-client/*.c /usr/local/imap-2006.DEV.SNAP-0606221518.tar.Z/c-client/lib

#ln -s /usr/local/imap-2004b.DEV.SNAP-0606221518/c-client/c-client.a /usr/local/imap-2004b.DEV.SNAP-0606221518/lib/libc-client.a

these steps i followed to install imap
but i am unable to include imap with php.

./configure
[root@lynx php-5.1.4]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/lib/mysql --with-imap=/usr/local/imap-2006.DEV.SNAP-0606161827

[root@lynx php-5.1.4]# make && make install

/bin/sh /download/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/imap/ -I/download/php-5.1.4/ext/imap/ -DPHP_ATOM_INC -I/download/php-5.1.4/include -I/download/php-5.1.4/main -I/download/php-5.1.4 -I/usr/include/libxml2 -I/download/php-5.1.4/ext/date/lib -I/usr/local/imap-2006.DEV.SNAP-0606161827/include -I/usr/local/include/mysql -I/download/php-5.1.4/TSRM -I/download/php-5.1.4/Zend -I/usr/include -g -O2 -prefer-non-pic -c /download/php-5.1.4/ext/imap/php_imap.c -o ext/imap/php_imap.lo
/download/php-5.1.4/ext/imap/php_imap.c:78: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006.DEV.SNAP-0606161827/include/utf8.h:538: error: previous declaration of 'utf8_mime2text' was here
/download/php-5.1.4/ext/imap/php_imap.c:78: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006.DEV.SNAP-0606161827/include/utf8.h:538: error: previous declaration of 'utf8_mime2text' was here
make: *** [ext/imap/php_imap.lo] Error 1


[root@lynx php-5.1.4]# uname -r
2.6.9-34.EL

kindly help me out to integrate imap with php-5.1.4

Thanks in advance.
Regards,
Turab

theYinYeti 06-26-2006 12:33 PM

Why don't you install and use a binary of the excellent BincImap (simple to install, simple to use)? Or something similar?

Yves.


All times are GMT -5. The time now is 05:16 AM.