[Xapian-discuss] Having trouble compiling xapian-bindings for php

Olly Betts olly at survex.com
Sat Jun 16 02:45:29 BST 2007

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 23

Firstly, 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


More information about the Xapian-discuss mailing list