在64位debian6.0下编译某软件时报如下错误:
- libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but the
- libtool: definition of this LT_INIT comes from libtool 2.2.6b.
- libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
- libtool: and run autoconf again.
- make[2]: *** [wktools4] Error 63
- make[2]: Target `all' not remade because of errors.
- make[1]: *** [all-recursive] Error 1
- make: *** [all] Error 2
- *** Exited with status: 2 ***
解决方法:
在工程的根目录下执行下面命令。
- autoreconf --force --install
- ./configure
- make
如果还是不起作用的话,执行语句
- make maintainer-clean
aclocal.m4,所有m4目录, 所有autom4te.cache目录, configure, Makefile.in, config.h, config.h.in, config.status, libtool, ltmain.sh文件,然后再执行上面命令。
参考:http://stackoverflow.com/questions/3096989/libtool-version-mismatch-error
本文介绍了解决在Debian 6.0系统中编译软件遇到的Libtool版本不匹配错误的方法。通过使用autoreconf清理配置文件并重新运行配置过程,大多数情况下可以解决该问题。若问题依旧存在,则需要进行更彻底的清理。
307

被折叠的 条评论
为什么被折叠?



