PDA

Bekijk Volledige Versie : Installeren van php-imap



Dutchboy
20/06/12, 10:50
Ik heb al meerder howto's gelezen hier op het forum maar ik blijf het probleem houden.

Ik krijg iedere keer de volgende melding:

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

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

Ik draai het op centos 6 64bit

Heeft iemand een goeie howto of uitleg.

xaban
20/06/12, 11:13
Ik reageer via de iPhone dus kan er niet echt op in gaan, maar de error lijkt mij duidelijk? Is de imap library aanwezig?

Dutchboy
20/06/12, 11:24
Ik heb voor imap dit erop gezet.

/usr/local/imap-2007f/

xaban
20/06/12, 11:53
http://www.directadmin.com/forum/showthread.php?t=18341&page=1 al geprobeerd?

Of dit? http://www.directadmin.com/imap.txt

On CentOS 64-bit, if you see the error:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

and cannot find libc-client.a anywhere on your box:
updatedb
locate libc-client.a

Then type:
wget http://dl.atrpms.net/src/el6-i386/atrpms/stable/uw-imap-2007e-8.src.rpm
rpmbuild --rebuild uw-imap-2007e-8.src.rpm
cd /usr/src/redhat/RPMS/x86_64/
rpm -ivh uw-imap-static-2007e-8.el6.x86_64.rpm uw-imap-devel-2007e-8.el6.x86_64.rpm libc-client-2007e-8.el6.x86_64.rpm

Note, you may need to remove the newer version of libc-client and libc-client-devel, if the above conflict.
Also, link the .a file:
ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a

Dutchboy
20/06/12, 12:22
Wat ik ook probeer ik blijf deze error houden

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

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

eXtreme Service
20/06/12, 12:43
Is normaal dat je dat krijgt op CentOS 6.
Op het forum van directadmin staat de oplossing: http://directadmin.com/forum/showthread.php?t=41879

NibeP
20/06/12, 13:25
Wat staat er in je /custom/ap2/configure.php5 ?

Randy
20/06/12, 13:33
Je hoeft de IMAP client niet te bouwen, alle DA-systemen komen tegenwoordig met Dovecot.

yum -y install libc-client libc-client-devel
cd /usr/local/directadmin/custombuild
cp -aR configure custom <<< Belangrijk!

toevoegen in custom/ap2/configure.php5 :

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

./build php n

Mocht het niet lukken wil ik het wel even voor je doen.

Dutchboy
20/06/12, 14:06
Beste Randy,

Ik heb je stappen gevolgd en krijg nu deze melding:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

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

Randy
20/06/12, 14:17
Doe eens:

# rpm -qa | grep libc-client

Wat is hiervan de output?

Dutchboy
20/06/12, 14:19
de output hiervan is:


libc-client-2007e-11.el6.x86_64
libc-client-devel-2007e-11.el6.x86_64

Dutchboy
20/06/12, 17:28
Inmiddels heb ik de oplossing gevonden. Iedereen bedankt voor de tijd en hulp

NibeP
20/06/12, 18:17
Hoe heb je het opgelost?

Dutchboy
20/06/12, 18:29
Ik zal de oplossing even delen:

yum install libc-client.i686 libc-client-devel.i686

Dit was voor mij voldoende.

xaban
20/06/12, 19:24
Dus had je stiekem toch niet de link doorgelezen wat ik had gepost en derhalve niet alles geprobeerd :)

Raimond van Mouche
13/10/12, 20:15
@Randy: Ik krijg deze foutmelding:
/usr/local/directadmin/custombuild/custom/ap2/configure.php5: line 33: --with-imap=/usr/lib/dovecot/imap: No such file or directory enig idee hoe dit is op te lossen?

vDong
14/10/12, 10:06
Ergens een \ vergeten?

Raimond van Mouche
14/10/12, 11:47
Hmm, nee: dit staat in mijn configure.php5 in de laatste twee regels:

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

Yourwebhoster
14/10/12, 11:49
Heb je dovecot er wel op staan? Ik heb verder geen verwijzing naar de path waar imap in zit en dat werkt prima.

Raimond van Mouche
14/10/12, 11:56
Dat is een goeie, ik las dit:


Je hoeft de IMAP client niet te bouwen, alle DA-systemen komen tegenwoordig met Dovecot.


dus nam aan dat het er op zou staan, even een opzoeken hoe ik dovecot installeer.

Yourwebhoster
14/10/12, 11:57
http://www.directadmin.com/forum/showthread.php?t=29824

Raimond van Mouche
14/10/12, 12:11
Custombuild, tuurlijk..
Het werkt, ik ben nu php aan het rebuilden. Is het verstandig om apache ook nog te rebuilden?

Raimond van Mouche
14/10/12, 12:12
Oh wacht, nogsteeds die error:


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

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

Yourwebhoster
14/10/12, 12:12
Stuur even een PB met je login, als je snel bent dan kan ik er even naar kijken.

Yourwebhoster
14/10/12, 12:32
Opgelost. Was een klassieke fout waarbij de imap commands er in geplakt worden en de voorgaande niet een \ op de regeleinde krijgt.

Heb verder ook de verwijzing naar dovecot weggehaald, dat is niet nodig in dit geval.

vDong
15/10/12, 09:57
Ergens een \ vergeten?
*fluit*