Thursday, September 2, 2010

configure: error: This c-client library is built with Kerberos support

Guys,

I got the error message during executing easyapache. I have manually recompiled the php on cpanel server. Here is the script that I have used to do the same :

Note : I enabled kerberos and added the line like : --with-kerberos to fix the issue.

=======
-bash-3.2# cat /root/manual_php_recompile.sh
#!/bin/bash
#By Kamal Maiti

cd /home/cpeasyapache/src/php-5.2.9/

./configure --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-sockets --enable-zip --with-kerberos --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-libdir=lib64 --with-libexpat-dir=/usr --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mime-magic --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-openssl=/usr --with-openssl-dir=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr --with-sqlite=shared --with-ttf --with-xmlrpc --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr

make
make install

#eaccelerator reinstall
mv /usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so.bk2sept

cd /usr/local/src/
wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
tar -jxvf eaccelerator-0.9.5.3.tar.bz2
cd eaccelerator-0.9.5.3
phpize
./configure

make
make install

/etc/init.d/httpd restart

-bash-3.2#
=======

You need to create the .sh file and make it executable. Then run it on screen.

That's it :)

No comments:

Post a Comment