[Xapian-discuss] Error on ./configure process with
Xapian-bindings-0.9.6
Olly Betts
olly at survex.com
Mon Sep 18 16:19:26 BST 2006
On Mon, Sep 18, 2006 at 02:45:25AM -0700, Sebi wrote:
> >However, having run configure, I think you should be able to pass the
> >values to "make" like this (assuming that you have PHP installed in
> >"c:\php5" and the PHP source unpacked at "c:\php-5.1.6"):
>
> >cd php
> >make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev -lphp5ts" >PHP_EXTENSION_DIR=c:/php5/ext
> >make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev -lphp5ts" >PHP_EXTENSION_DIR=c:/php5/ext install
>
>
> I tried this mehod but useless. For the make I get the following output:
>
> $ make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev -lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext
> make all-recursive
> make[1]: Entering directory `/c/bin/xapian/xapian-bindings-0.9.6'
You've missed the vital "cd php" first step from the above list.
> - Is there anyone which installed php bindings with success in the past?
I don't remember hearing any success reports, but that doesn't
necessarily mean it's not been done.
> - Is Cygwin a better solution? If I compile php source with Cygwin and
> then I make php_xapian.dll, will it (php_xapian.dll) be compatible
> with windows binaries version?
That's very unlikely to work - cygwin uses it's own C library, so you'll
get issues with things like passing malloc-ed memory to/from PHP. Mingw
certainly stands more chance.
If you can build PHP with cygwin and the bindings with cygwin, you could
use the cygwin PHP, but that prevent using it with IIS...
Cheers,
Olly
More information about the Xapian-discuss
mailing list