Josh
2007-Jun-16 01:13 UTC
[Xapian-discuss] Having trouble compiling xapian-bindings for php
Running CentOS, php5, and just downloaded the 1.0.1, extracted, compiled, installed per the instructions. Next I tried to compile the xapian-bindings for php ./configure XAPIAN_CONFIG=/usr/local/bin/xapian-config --with-php configure runs fine, make runs fine, make check reports the following error: Warning: dl(): Unable to load dynamic library '/usr/local/src/xapian- bindings-1.0.1/php/.libs/xapian.so' - libxapian.so.15: cannot open shared object file: No such file or directory in /usr/local/src/xapian- bindings-1.0.1/php/php5/xapian.php on line 23 Fatal error: Call to undefined function major_version() in /usr/local/src/xapian-bindings-1.0.1/php/php5/xapian.php on line 40 FAIL: smoketest.php ==================1 of 1 tests failed ================== Any ideas?
Olly Betts
2007-Jun-16 02:45 UTC
[Xapian-discuss] Having trouble compiling xapian-bindings for php
On Fri, Jun 15, 2007 at 05:13:12PM -0700, Josh wrote:> configure runs fine, make runs fine, make check reports the following error: > > > Warning: dl(): Unable to load dynamic library '/usr/local/src/xapian- > bindings-1.0.1/php/.libs/xapian.so' - libxapian.so.15: cannot open shared > object file: No such file or directory in /usr/local/src/xapian- > bindings-1.0.1/php/php5/xapian.php on line 23Firstly, I think the bug here is probably only in how we're trying to run the tests. If you actually installed the PHP bindings and tried to use them, you'll probably find they work. But even if that's the case, it would be good to fix this. Can you see if this makes the tests run and pass: LD_LIBRARY_PATH=/usr/local/lib make check Can you paste the output from this? ldd /usr/local/src/xapian-bindings-1.0.1/php/.libs/xapian.so And this: readelf -a /usr/local/src/xapian-bindings-1.0.1/php/.libs/xapian.so|grep RPATH Cheers, Olly