[Xapian-discuss] Problems with xapian php bindings in osx
Olly Betts
olly at survex.com
Tue Nov 27 16:29:22 GMT 2007
On Tue, Nov 27, 2007 at 09:25:00AM -0500, Frank Claycomb wrote:
> I am attempting to run the smoketest.php file from my devserver and
> am getting nothing but errors. It looks like it did not install
> correctly. Yesterday I compiled the source on os x and it appeared
> to install just fine, but now it is not working at all. I tried to
> replace the location of the xapian.php file with a hardcoded located
> and got a different set of errors. Here are the errors with the
> original smoketest.php
How are you running smoketest.php? The expected way is by running
"make check" in the source tree, but it sounds like you're trying
to install smoketest.php.
> If i move the xapian.so file into the no-debug-non-zts-20060613
> directory i get yet more errors. The file is taken from /usr/lib/php/
> extensions/no-debug-non-zts-20020429/xapian.so
>
> Warning: dl() [function.dl]: |¦B?: Unable to initialize module
> Module compiled with module API=20020429, debug=0, thread-safety=0
> PHP compiled with module API=20060613, debug=0, thread-safety=0 These
> options need to match in /usr/local/php5/xapian.php on line 23
Based on the API version number "20020429", you've built your module for
PHP4, which means it just isn't going to work with PHP5.
Start from a clean xapian-bindings source tree and configure like so:
./configure PHP_CONFIG=php-config5
If you don't have "php-config5", you may need to install a "PHP5
development" package or similar to get it, or it might be "php-config"
but with a different path. I'm not familiar with OS X so I don't know
how this works there I'm afraid.
Cheers,
Olly
More information about the Xapian-discuss
mailing list