An error occurred while executing buildconf. sh in sphexample/Coreseek 4.1. The configure file cannot be generated,
When I installed coorseek, I encountered some errors. I couldn't see the solution on the official website. Finally, google found a solution in the comment area of a blog, and suddenly offered it to my knees ~~
This is to make it easy for some people to find out. After all, the Great Wall firewall makes google not so friendly. % >_< %, but the blog of Daniel still got it: Portal
Error: An error is reported when buildconf. sh is executed. The configure file cannot be generated.
The error message is as follows:
libstemmer_c/mkinc.mak:10: warning: source file 'runtime/utilities.c' is in a subdirectory,libstemmer_c/mkinc.mak:10: but option 'subdir-objects' is disabledlibstemmer_c/Makefile.am:3: 'libstemmer_c/mkinc.mak' included from herelibstemmer_c/mkinc.mak:10: warning: source file 'libstemmer/libstemmer.c' is in a subdirectory,libstemmer_c/mkinc.mak:10: but option 'subdir-objects' is disabledlibstemmer_c/Makefile.am:3: 'libstemmer_c/mkinc.mak' included from here/usr/local/share/automake-1.14/am/library.am: warning: 'libstemmer.a': linking libraries using a non-POSIX/usr/local/share/automake-1.14/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'libstemmer_c/Makefile.am:2: while processing library 'libstemmer.a'/usr/local/share/automake-1.14/am/library.am: warning: 'libsphinx.a': linking libraries using a non-POSIX/usr/local/share/automake-1.14/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'src/Makefile.am:14: while processing library 'libsphinx.a'
It looks like there are actually two: 1.but option 'subdir-objects' is disabled 2. archiver requires 'am _ PROG_AR 'in 'configure. AC'
Solution:
1. In the csft-4.1/buildconf. sh file, find
&& aclocal \
Add
&& automake --add-missing \
2. In the csft-4.1/configure. ac file, find:
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
Changed:
AM_INIT_AUTOMAKE([-Wall foreign])
Search:
AC_PROG_RANLIB
Add
AM_PROG_AR
3. Finally, in the csft-4.1/src/sphinxexpr. cpp file, replace all:
T val = ExprEval ( this->m_pArg, tMatch );
Become:
T val = this->ExprEval ( this->m_pArg, tMatch );
At the end, I will show my knees again ......