[Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922

Ron Parker sysop at scbbs.com
Sat Apr 20 09:20:06 BST 2013


Thank you for the response.  How do I rebuild the bindings against the version of PHP I have installed?  I installed Xapian using yum:

# rpm -ivh http://rpm.eprints.org/rpm-eprints-org-key-1-1.noarch.rpm
# rpm -ivh http://rpm.eprints.org/xapian/6/noarch/rpm-eprints-org-xapian-6-1.noarch.rpm
# yum update
# yum install xapian-omega xapian-bindings-{php,python,tcl8,perl,ruby}

I thought this would have done that, but apparently not.  How do I rebuild the bindings?

Thanks!

-ron

----- Original Message -----
From: "Olly Betts" <olly at survex.com>
To: "Ron Parker" <sysop at scbbs.com>
Cc: xapian-discuss at lists.xapian.org
Sent: Friday, April 19, 2013 11:45:55 PM
Subject: Re: [Xapian-discuss] warning: dl() [function.dl]: xapian: Unable	to  initialize module Module compiled with module API=20050922

On Sat, Apr 20, 2013 at 12:59:40AM -0500, Ron Parker wrote:
> "warning: dl() [function.dl]: xapian: Unable to initialize module
> Module compiled with module API=20050922, debug=0, thread-safety=0 PHP
> compiled with module API=20060613, debug=0, thread-safety=0 These
> options need to match in /usr/share/php/xapian.php on line 22." 

This isn't really a Xapian-specific problem - it's a PHP version
mismatch.

The error means the PHP bindings you're trying to use were built for an
older version of PHP.  The PHP developers make binary-incompatible
changes to the module API sometimes.

You're either going to need to install that older PHP version (one which
has "module API=20050922" - a quick poke in google suggests that means
PHP 5.1.x) or rebuild the bindings against the version of PHP you have
installed.

Cheers,
    Olly



More information about the Xapian-discuss mailing list