[Xapian-discuss] building php bindings

dennis dennis at works4me.com
Fri Nov 17 20:22:16 GMT 2006


Sam Liddicott wrote:
> It means you have an unclean php installation or possibly the vesitages of one installation along with a good installation.
>
> Is your php installed in /usr/local ?
> Php-config is to tell linking libraries and applications where various parts of php have been installed.
>
> I guess you have an old php in /usr/local and a newer php in /usr. Make sure you have the php dev files installed too.
>
>   
Strangely, I only have one php installed - I downloaded and built 
php-5.1.5. Here is the config command:

./configure  --prefix=/usr/local --with-apxs=/usr/local/apache/bin/apxs 
--with-mysqli --with-pgsql=/usr/local/pgsql/ --with-mysql --with-gd 
--with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib 
--with-png-dir=/usr/lib --with-gettext


The only php.ini exists under /usr/local/lib/php.ini...

And the sample code:

<?php
dl('xapian.so');
echo xapian_version_string()."\n";
?>


tries to load xapian.so from /usr/local/lib. If I put xapian.so into 
/usr/local/lib, I get this message:

 PHP Fatal error:  Class 'Xapian' not found in 
/home/apache/...../htdocs/xtest.php

But perhaps I've caused problems. I installed Xapian to 
/usr/local/xapian. Although I did add /usr/local/xapian/lib to ld.so.conf.

I'm running CentOS 4.4 final.

Dennis





More information about the Xapian-discuss mailing list