How to fix libtool: Version mismatch error

本文介绍了解决在安装memcache扩展时遇到的libtool版本不匹配错误的方法。通过下载源码包、删除aclocal.m4文件并重新运行配置脚本等步骤,可以成功安装memcache扩展。
           

            How to fix libtool: Version mismatch error

                                           

By Cristian                 May 28, 2012                                 GNU/Linux                                                 2 Comments                            

               

                                           

Hello,

A couple of days ago I encountered the following issue when installing memcache using pecl:

This should have been a simple thing, it is usually works using a simple command:

pecl install memcache

Unfortunately this time it did not, it just returned the following messages:

libtool: Version mismatch error.  This is libtool 2.2.10, 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.10

The answer is simple and you have instructions on what you have to do in the error message, so this is what you have to do:

1. Download the package:

pecl download memcache

2. Extract the package && navigate to the right directory:

tar -zxvf memcache-2.2.6.tgz
cd memcache-2.2.6/

3.  Run phpize:

phpize --clean
phpize

4. Remove the aclocal.m4 file:

rm aclocal.m4

5. Run aclocal and autoconf:

aclocal
autoconf

6. Now configure, make and install the package:

. /configure
make
make install

Everything should work, if you encounter any other issues just read the error messages and follow the instructions.

I have encountered the same problem with apc and geoip extensions also, I followed the same steps and managed to install these without any other issues


转载于:https://my.oschina.net/u/853533/blog/215033

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值