版本:mockcpp-2.2-20090903
./configure执行没有错误提示,make时出现如下错误:
../libtool: line 467: CDPATH: command not found
../libtool: line 1145: func_opt_split: command not found
libtool: Version mismatch error. This is libtool 2.2.6, 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.6
libtool: and run autoconf again.
make[2]: *** [AfterMatcher.lo] Error 63
make[2]: Leaving directory `/mnt/win_share/test/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/win_share/test/src'
参照http://blog.csdn.net/zhaoweikid/archive/2007/08/16/1746680.aspx 的分析,原因应该是源代码中的ltmain.sh是和libtool2.2.6对应的版本,而我机器的libtool版本是1.5.26。手工使用本机的ltmain.sh替换源码中的ltmain.sh后,可以正常编译通过。升级libtool到2.2.6(没有找到rpm包,使用make的方式编译、安装的),问题仍无法解决,知道的朋友请指点。