configure: error: Kerberos libraries not found.

mitya3003

New member
Joined
Mar 24, 2009
Messages
3
Hello.

OS CENTOS 5.2 64 bit

Im stuck on this problem:

./build php5-cli

..............

checking for IMAP support... yes
checking for IMAP Kerberos support... /usr/kerberos
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... old
checking for U8T_CANONICAL... no
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
configure: error: Kerberos libraries not found.

Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )


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


kerberos located in /usr/kerberos


[root@ ap2]# cat ./configure.php5
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-lib-dir \
--with-kerberos=/usr/kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring \
--with-imap \
--with-imap-ssl


[root@ ap2]# cat ./configure.apache
#!/bin/sh
"./configure" \
"--prefix=/etc/httpd" \
"--exec-prefix=/etc/httpd" \
"--bindir=/usr/bin" \
"--sbindir=/usr/sbin" \
"--sysconfdir=/etc/httpd/conf" \
"--enable-so" \
"--enable-dav" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-suexec" \
"--enable-deflate" \
"--enable-unique-id" \
"--with-suexec-caller=apache" \
"--with-suexec-docroot=/" \
"--with-suexec-gidmin=100" \
"--with-suexec-logfile=/var/log/httpd/suexec_log" \
"--with-suexec-uidmin=100" \
"--with-suexec-userdir=public_html" \
"--with-suexec-bin=/usr/sbin/suexec" \
"--with-included-apr" \
"--with-pcre=/usr/local" \
"--includedir=/usr/include/apache" \
"--libexecdir=/usr/lib/apache" \
"--datadir=/var/www" \
"--localstatedir=/var" \
"--enable-logio" \
"--enable-ssl" \
"--enable-rewrite" \
"--with-ssl=/usr" \
"--enable-headers" \
"--with-mpm=worker"



All this forum was scanned for searching same problem but without result..

Please help solve this.
 
Code:
yum install krb5-devel
 
Last edited:
Thank you, but after install

Parsing package install arguments
Package krb5-devel - 1.6.1-25.el5_2.2.i386 is already installed.
Package krb5-devel - 1.6.1-25.el5_2.2.x86_64 is already installed.


problem the same..
 
Check /usr/local/directadmin/custombuild/php-5.2.9/config.log.
 
Such log didnt exist...

What else should I check?

I suppose this problem must bу widespread.
 
The following command (symlink) should fix the problem:
Code:
ln -s /usr/lib64 /usr/kerberos/lib
 
I have a problem with kerberos.

I want to ./build php to have --with-imap=/usr/local/imap-2004c1 \ .

But during ./build, I have an error message :
Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )

I try to install kerberos :
apt-get install krb5-config

Then run again ./build

But same error :mad:

=> is kerberos usefull ? I do not understand what exactly kerberos do.
=> do you know how to install it (debian 4 32bits)

Thanks for your help
 
Ok, I've solved my problem


Code:
aptitude install libkrb5-dev

Then I modify
--with-kerberos
to
--with-kerberos-inc=/usr/include

In /usr/local/directadmin/custombuild/configure/ap2/configure.php5


So now, I can ./build php !
And imap_open works. :)
 
Back
Top