[Xapian-discuss] Problems with xapian php bindings in osx
Frank Claycomb
fclaycomb at mntntp.com
Tue Nov 27 19:44:14 GMT 2007
Olly,
Thanks for the speedy reply. I was in fact trying to run
smoketest.php from the webbrowser. at any rate, I have now pointed
at my php-config file and when compiling I get this error when
running make in the bindings.
Making all in examples
make[5]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in .
mkdir built
mkdir: built: File exists
make[3]: [built/xapian_jni.jar] Error 1 (ignored)
/usr/bin/jar -cf built/xapian_jni.jar org/xapian/*.class org/xapian/
errors/*.class
I built the core as well pointing to the php-config file as well
(just for good measure) and passed it to the bindings configure
also. it was located in
/usr/local/php5/bin/php-config.
I did make sure that this is the location (used slocate that I had
just installed today).
Any idea why this is erroring?
-Frank
On Nov 27, 2007, at 11:29 AM, Olly Betts wrote:
> 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
>
Frank Claycomb
Software Developer
MountainTop Technologies
814-536-7676
More information about the Xapian-discuss
mailing list