页首Html代码

返回顶部

libtool version mismatch error 解决方法

在windows下, 使用 msys64 编译 ssdb 的以来项目 snappy-1.1.0 ,有报错:

`
$ make
make all-am
make[1]: 进入目录“/c/Users/mingwei.an/go/pkg/mod/github.com/ideawu/ssdb@v0.0.0-20201007094056-3e556e4bf4ce/deps/snappy-1.1.0”
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -g -O2 -MT snappy-c.lo -MD -MP -MF .deps/snappy-c.Tpo -c -o snappy-c.lo snappy-c.cc
libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1ubuntu1, but the
libtool: definition of this LT_INIT comes from libtool 2.4.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 Debian-2.4.2-1ubuntu1
libtool: and run autoconf again.
make[1]: *** [Makefile:453: snappy-c.lo] Error 63
make[1]: 离开目录“/c/Users/mingwei.an/go/pkg/mod/github.com/ideawu/ssdb@v0.0.0-20201007094056-3e556e4bf4ce/deps/snappy-1.1.0”
make: *** [Makefile:323: all] Error 2

`

解决这个libtool版本不匹配的命令为:
运行 autoreconf -ivf 即可。
或者

autoreconf --force --install
./configure
make

转载:http://stackoverflow.com/questions/3096989/libtool-version-mismatch-error
参考:http://www.compdigitec.com/labs/2012/10/18/solving-libtool-version-mismatch-error/

posted @ 2022-12-12 15:26  ayanmw  阅读(377)  评论(0编辑  收藏  举报

页脚Html代码