View Full Version : Install imap_c-client
snaaps
05-03-2006, 02:23 PM
Hello I trieing to install imap_c-client but it wont be work.
I follow this one:
http://www.directadmin.com/forum/showthread.php?s=&threadid=12430&highlight=imap2004g
when I update PHP i get the folloing message:
Thank you for using PHP.
/usr/local/directadmin/customapache/configure.php: line 30: --with-imap=/usr/local/imap-2004g: No such file or directory
*** There was an error while trying to configure php. Check the configure.php file
Is there anywone that can give me a worked howto?
We are using centos 4.2
EDIT:
I am a little further with the imap c-client.
But when I update ./ build php
we cat now:
-lcom_err -lcrypt -lcrypt -o libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
*** The make has failed, do you want to try to make again? (y,n):
EDIT 2:
just run before ./build php
# ./build clean
Fixed and works now!
joepie
snaaps
05-03-2006, 03:55 PM
HOW TO:
(for the people that not can find it here)
This is only tested on CENTOS 4.2
# yum install pam
# yum install pam-devel
Now we download c-client file
# wget ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
# tar -zxvf c-client.tar.Z
# cd imap-2004g (this is the latest for now)
# nano Makefile (read inside which format you need to use, eg "slx", "lnp", "lrh", or "lsu")
For centos, we will use this
# make lrh EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
Let's create directories for c-client, name varies on version.
# mkdir /usr/local/imap-2004g
Create libraries dir
# mkdir /usr/local/imap-2004g/lib
Create include dir
# mkdir /usr/local/imap-2004g/include
Change dir into the c-client dir.
# cd c-client/
Copy all .h files into /usr/local/imap-2004g/include/
# cp *.h /usr/local/imap-2004g/include/
Copy all .c files.
# cp *.c /usr/local/imap-2004g/lib/
Copy c-client.a
# cp c-client.a /usr/local/imap-2004g/lib/libc-client.a
Now configure the ./configuration.php (or _ap2 if you are on apache2) , please take note of the directory name you created.
# nano -w /usr/local/directadmin/customapache/configure.php
NOTE: add a \ after the original last line and then paste:
--with-imap=/usr/local/imap-2004g \
--with-gettext
once you are done, let's recompile php.
# /usr/local/directadmin/customapache
# ./build clean
# ./build php
Restart Apache
# service httpd restart
Now check your phpinfo, you should see something like this :
quote:
--------------------------------------------------------------------------------
imap
IMAP c-Client Version 2004
Also thanks to:
YES! Finally, thank you worked perfect.
blacknight
05-22-2006, 12:45 PM
You shouldn't have to install anything from source:
yum install libtool libtool-devel libc-client-devel.i386 libc-client.i386
and then:
./build php
this is on CentOS release 4.3 (Final)
ThaBomb
06-13-2006, 08:57 PM
Originally posted by blacknight
You shouldn't have to install anything from source:
yum install libtool libtool-devel libc-client-devel.i386 libc-client.i386
and then:
./build php
this is on CentOS release 4.3 (Final)
Do you also have "installguide" for x86_64
blacknight
06-14-2006, 12:27 AM
Originally posted by ThaBomb
Do you also have "installguide" for x86_64
Sorry - no :)
netstability
08-19-2006, 09:08 AM
Originally posted by snaaps
# /usr/local/directadmin/customapache
Do you mean?
# cd /usr/local/directadmin/customapache
Just checking, thanks for the great HOW TO!
saeed
10-10-2006, 11:40 AM
Hello,
I have followed the steps but I have an error here when try to compile PHP 4.4
/usr/local/directadmin/customapache/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006b/include/utf8.h:548: error: previous declaration of 'utf8_mime2text' was here
/usr/local/directadmin/customapache/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006b/include/utf8.h:548: error: previous declaration of 'utf8_mime2text' was here
make: *** [ext/imap/php_imap.lo] Error 1
*** The make has failed, do you want to try to make again? (y,n):
Any Idea
Originally posted by saeed
Hello,
I have followed the steps but I have an error here when try to compile PHP 4.4
/usr/local/directadmin/customapache/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006b/include/utf8.h:548: error: previous declaration of 'utf8_mime2text' was here
/usr/local/directadmin/customapache/php-4.4.4/ext/imap/php_imap.c:74: error: conflicting types for 'utf8_mime2text'
/usr/local/imap-2006b/include/utf8.h:548: error: previous declaration of 'utf8_mime2text' was here
make: *** [ext/imap/php_imap.lo] Error 1
*** The make has failed, do you want to try to make again? (y,n):
Any Idea
what version of imap are you trying to install?
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.