Ron Parker
2013-Apr-20 05:59 UTC
[Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922
I installed xapian core on Centos system. On execution, I get this error message: "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." PHP 5.2.16 (cli) (built: Dec 17 2010 14:09:03) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies CentOS release 5.3 (Final) Tikanga - added for OMSA install Any suggestions? Thanks! p.s. Here are the packages and version numbers I installed using YUM: Downloading Packages: (1/10): xapian-bindings-1.2.5-1.i386.rpm | 111 kB 00:00 (2/10): xapian-bindings-php-1.2.5-1.i386.rpm | 136 kB 00:00 (3/10): xapian-bindings-tcl8-1.2.5-1.i386.rpm | 166 kB 00:00 (4/10): xapian-bindings-ruby-1.2.5-1.i386.rpm | 201 kB 00:00 (5/10): ruby-1.8.5-29.el5_9.i386.rpm | 279 kB 00:00 (6/10): xapian-omega-1.2.5-1.i386.rpm | 333 kB 00:00 (7/10): xapian-bindings-perl-1.2.5-1.i386.rpm | 336 kB 00:00 (8/10): xapian-bindings-python-1.2.5-1.i386.rpm | 365 kB 00:00 (9/10): xapian-core-libs-1.2.5-1.i386.rpm | 929 kB 00:00 (10/10): ruby-libs-1.8.5-29.el5_9.i386.rpm | 1.6 MB 00:01 -ron
Olly Betts
2013-Apr-20 06:45 UTC
[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
Tim Brody
2013-Apr-22 11:52 UTC
[Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922
Hi, I've built packages for 1.2.15 against the latest RHEL 6. Let me know if you have any further problems. Thanks, Tim. On Sat, 2013-04-20 at 03:20 -0500, Ron Parker wrote:> 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 > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20130422/f20f70df/attachment.pgp>
Ron Parker
2013-Apr-22 17:21 UTC
[Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922
Can you tell me how I rebuild the bindings as suggested for my version of PHP? Or, how to install the packages you built? PHP 5.2.16 (cli) (built: Dec 17 2010 14:09:03) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies CentOS release 5.3 (Final) Tikanga - added for OMSA install Thanks so much! -ron ----- Original Message ----- From: "Tim Brody" <tdb2 at ecs.soton.ac.uk> To: "Ron Parker" <sysop at scbbs.com> Cc: "Xapian Discussion" <xapian-discuss at lists.xapian.org> Sent: Monday, April 22, 2013 4:52:07 AM Subject: Re: [Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922 Hi, I've built packages for 1.2.15 against the latest RHEL 6. Let me know if you have any further problems. Thanks, Tim. On Sat, 2013-04-20 at 03:20 -0500, Ron Parker wrote:> 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 > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss
Tim Brody
2013-Apr-23 07:51 UTC
[Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922
I haven't tried building on RHEL 5 but this is how you would do it: yum -y install rpm-build yum-utils Download the source tarballs from here: http://xapian.org/download rpmbuild -ta xapian-core-*.tar.gz (install any missing dependencies) rpm -ivh <path to core-RPMs> rpmbuild -ta --without csharp --without perl --without python xapian-bindings-*.tar.gz /Tim. On Mon, 2013-04-22 at 12:21 -0500, Ron Parker wrote:> Can you tell me how I rebuild the bindings as suggested for my version of PHP? > > Or, how to install the packages you built? > > PHP 5.2.16 (cli) (built: Dec 17 2010 14:09:03) > Copyright (c) 1997-2010 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies > > CentOS release 5.3 (Final) > Tikanga - added for OMSA install > > Thanks so much! > > -ron > > ----- Original Message ----- > From: "Tim Brody" <tdb2 at ecs.soton.ac.uk> > To: "Ron Parker" <sysop at scbbs.com> > Cc: "Xapian Discussion" <xapian-discuss at lists.xapian.org> > Sent: Monday, April 22, 2013 4:52:07 AM > Subject: Re: [Xapian-discuss] warning: dl() [function.dl]: xapian: Unable to initialize module Module compiled with module API=20050922 > > Hi, > > I've built packages for 1.2.15 against the latest RHEL 6. Let me know if > you have any further problems. > > Thanks, > Tim. > > On Sat, 2013-04-20 at 03:20 -0500, Ron Parker wrote: > > 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 > > > > _______________________________________________ > > Xapian-discuss mailing list > > Xapian-discuss at lists.xapian.org > > http://lists.xapian.org/mailman/listinfo/xapian-discuss > > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20130423/0f85db54/attachment.pgp>