An error occurred while executing buildconf. sh in sphexample/Coreseek 4.1. The configure file cannot be generated,

Source: Internet
Author: User
Tags posix automake

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 ......


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.