sphinx/Coreseek 4.1 执行make出错

参考的网址: http://blog.csdn.net/jcjc918/article/details/39032689

configure正确之后,执行make,出现如下的报错信息

configure.ac:62: error: required file 'config/ar-lib' not found
configure.ac:62:   'automake --add-missing' can install 'ar-lib’

解决方法:

  在 csft-4.1/buildconf.sh 文件中,查找

&& aclocal  

后加上

&& automake --add-missing 

再重新执行

make

依然报如下的错误

make[2]: *** [sphinxexpr.o] 错误 1
make[2]: 离开目录“/data/software/coreseek-4.1-beta/csft-4.1/src”
make[1]: *** [all] 错误 2
make[1]: 离开目录“/data/software/coreseek-4.1-beta/csft-4.1/src”
make: *** [all-recursive] 错误 1

解决办法:

在 csft-4.1/src/sphinxexpr.cpp 文件中, 替换所有

T val = ExprEval ( this->m_pArg, tMatch );

成为:

T val = this->ExprEval ( this->m_pArg, tMatch ); 

再执行make, 没有出现报错信息,至此问题解决;

原文地址:https://www.cnblogs.com/mingaixin/p/5013356.html