View previous topic :: View next topic |
Author |
Message |
quade n00b

Joined: 07 Apr 2006 Posts: 18
|
Posted: Mon Apr 26, 2010 2:28 am Post subject: Pecl install fails, complains about libtool version mismatch |
|
|
I'm trying to install mongo PHP extensions using pecl install mongo. But it fails with:
...
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/mongo-1.0.6/libtool --mode=compile cc -I. -I/tmp/pear/download/mongo-1.0.6 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/mongo-1.0.6/include -I/var/tmp/pear-build-root/mongo-1.0.6/main -I/tmp/pear/download/mongo-1.0.6 -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/download/mongo-1.0.6/mongo.c -o mongo.lo
/var/tmp/pear-build-root/mongo-1.0.6/libtool: line 467: CDPATH: command not found
/var/tmp/pear-build-root/mongo-1.0.6/libtool: line 1152: func_opt_split: command not found
libtool: Version mismatch error. This is libtool 2.2.6b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b
libtool: and run autoconf again.
make: *** [mongo.lo] Error 63
ERROR: `make' failed
In fact, anything I try to install with pecl fails with the same error message.
I've reemerged php, libtool, automake, etc several times, and run revdep-rebuild whenever they've told me to.
Any ideas how to fix this? |
|
Back to top |
|
 |
rtomek Apprentice


Joined: 05 Jan 2007 Posts: 210 Location: Chicago
|
Posted: Mon Apr 26, 2010 4:22 am Post subject: |
|
|
This is a known problem, though I think it only occurs on gentoo. If possible, use the ebuilds for pecl extensions if they exist. If it's an extension that doesn't have an ebuild, the workaround is pretty easy.
Here is an example solution:
Code: | wget http://pecl.php.net/get/uploadprogress
tar -xvzf uploadprogress
cd ./uploadprogress-1.0.1
phpize
aclocal
libtoolize --force
autoheader
autoconf
./configure
make
sudo make install |
taken from http://pecl.php.net/bugs/bug.php?id=16963 |
|
Back to top |
|
 |
quade n00b

Joined: 07 Apr 2006 Posts: 18
|
Posted: Mon Apr 26, 2010 7:35 pm Post subject: |
|
|
*sigh*
Thanks rtomek, that worked for my mongo extension (no ebuild for that one). |
|
Back to top |
|
 |
beandog Bodhisattva


Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Mon Apr 26, 2010 8:51 pm Post subject: |
|
|
rtomek wrote: | This is a known problem, though I think it only occurs on gentoo. If possible, use the ebuilds for pecl extensions if they exist. If it's an extension that doesn't have an ebuild, the workaround is pretty easy.
Here is an example solution:
Code: | wget http://pecl.php.net/get/uploadprogress
tar -xvzf uploadprogress
cd ./uploadprogress-1.0.1
phpize
aclocal
libtoolize --force
autoheader
autoconf
./configure
make
sudo make install |
taken from http://pecl.php.net/bugs/bug.php?id=16963 |
That's odd, works for me. File a bug if you don't mind.
Also, added pecl-uploadprogress to the tree. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
 |
beandog Bodhisattva


Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Mon Apr 26, 2010 8:51 pm Post subject: |
|
|
Oh, wait, I should say the *mongo* ebuild works for me, not pecl install mongo. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
 |
rtomek Apprentice


Joined: 05 Jan 2007 Posts: 210 Location: Chicago
|
Posted: Mon Apr 26, 2010 10:21 pm Post subject: |
|
|
Yes, only mongo is in the tree. If you want to use the pecl interface with mongo, one would want to use a pecl-mongo ebuild if it existed, which is what he is looking for.
edit: I think that they may both be the same thing. Perhaps 'emerge mongo' just installs what he is looking for. Seems kind of confusing since mongo is listed in the tree as a php extension, but the instructions on their website for installing on linux say to use pecl. |
|
Back to top |
|
 |
beandog Bodhisattva


Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Apr 27, 2010 4:02 pm Post subject: |
|
|
rtomek wrote: | Yes, only mongo is in the tree. If you want to use the pecl interface with mongo, one would want to use a pecl-mongo ebuild if it existed, which is what he is looking for.
edit: I think that they may both be the same thing. Perhaps 'emerge mongo' just installs what he is looking for. Seems kind of confusing since mongo is listed in the tree as a php extension, but the instructions on their website for installing on linux say to use pecl. |
How would that be confusing? Websites telling you install PEAR stuff will say pear install Foo-Package, but you still emerge PEAR-Foo-Package. Same thing with pecl stuff (though in the case of mongo, it's not prefixed by pecl- for some reason, which I don't know why). _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
 |
quade n00b

Joined: 07 Apr 2006 Posts: 18
|
Posted: Tue Apr 27, 2010 7:36 pm Post subject: |
|
|
There's actually 2 things to install here. The mongo ebuild is for the Mongo database itself, which I successfully emerged. However, the PHP extension I was trying to install (pecl install mongo) is to include the PHP drivers to talk to the Mongo database. So if there was an ebuild for that, I would imagine it would be pecl-mongo. |
|
Back to top |
|
 |
beandog Bodhisattva


Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Apr 27, 2010 8:31 pm Post subject: |
|
|
quade wrote: | There's actually 2 things to install here. The mongo ebuild is for the Mongo database itself, which I successfully emerged. |
Really? If that's so, then I'm equally confused, because the description for "mongo" is "Officially supported PHP driver for MongoDB", so I'm reading that as a driver, not a database.
Equally, the PECL package for mongo says it's a database driver.
It looks like the DB itself is dev-db/mongodb.
So, there's two PHP drivers, then, I guess? Or something?
Either way, if you want PECL mongo package, file a bug for a request plz.  _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
 |
beandog Bodhisattva


Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Apr 27, 2010 8:33 pm Post subject: |
|
|
beandog wrote: | So, there's two PHP drivers, then, I guess? Or something? |
Well, that can't be right ... both packages have the same author and homepage. -_- _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
 |
rtomek Apprentice


Joined: 05 Jan 2007 Posts: 210 Location: Chicago
|
Posted: Tue Apr 27, 2010 10:09 pm Post subject: |
|
|
yeah, that's what I was trying to explain in my post.
If you look at the mongo homepage, any installation method requires pecl and tells you to install using pecl. The ebuild would almost certainly be the pecl extension since that's the only one that exists. So mongo=pecl-mongo becaust it's the only mongo.
http://www.php.net/manual/en/mongo.installation.php#mongo.installation.gentoo |
|
Back to top |
|
 |
quade n00b

Joined: 07 Apr 2006 Posts: 18
|
Posted: Wed Apr 28, 2010 6:02 pm Post subject: |
|
|
Sorry, I was completely confused... mongodb is the database ebuild, mongo is the PECL library. I had emerged mongodb, but was looking for a pecl-mongo ebuild; not finding that, I tried pecl install mongo. To make it worse, I later confused mongo for mongodb.  |
|
Back to top |
|
 |
|