Install imap_c-client

snaaps

Verified User
Joined
Jan 29, 2005
Messages
226
Location
Netherlands
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
 
Last edited:
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:
 
You shouldn't have to install anything from source:

Code:
yum install libtool libtool-devel  libc-client-devel.i386 libc-client.i386

and then:
Code:
./build php

this is on CentOS release 4.3 (Final)
 
blacknight said:
You shouldn't have to install anything from source:

Code:
yum install libtool libtool-devel  libc-client-devel.i386 libc-client.i386

and then:
Code:
./build php

this is on CentOS release 4.3 (Final)

Do you also have "installguide" for x86_64
 
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
 
saeed said:
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?
 
Back
Top