Problems encountered during the whole process of sphinx/coreseek installation
Source: Internet
Author: User
Problems encountered during the whole process of sphinx/coreseek installation libsphinx. a (sphworkflow. o): Infunction 'csphtokenizer _ zh_CN_GBK: GetLocalBuffer (unsignedchar *, int, unsignedchar *) & amp; #39 ;: /setup/coreseek-3 sphek/coreseek some problems encountered throughout the installation process libsphinx. a (sphworkflow. o): In function 'csphtokenizer _ zh_CN_GBK: GetLocalBuffer (unsigned char *, int, unsigned char *) ':/setup/coreseek-3.2.14/csft-3.2.14/src/sphinx. cpp: 4764: undefined reference to 'libiconv' libsphworkflow. a (sphworkflow. o): In function 'csphtokenizer _ zh_CN_UTF8_Private: GetConverterOutput (char const *, char const *) ':/setup/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h: 86: undefined reference to 'libiconv _ open'/setup/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h: 89: undefined reference to 'libiconv' libsphquota. a (sphworkflow. o): In function 'csphtokenizer _ zh_CN_GBK: SetBuffer (unsigned char *, int) ':/setup/coreseek-3.2.14/csft-3.2.14/src/sphinx. cpp: 4792: undefined reference to 'libiconv' libsphworkflow. a (sphworkflow. o): In function 'csphtokenizer _ zh_CN_UTF8_Private: GetConverter (char const *, char const *) ':/setup/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h: 70: undefined reference to 'libiconv _ open'/setup/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h: 73: undefined reference to 'libiconv' libsphquota. a (sphworkflow. o): In function 'xmlunknownencoding ':/setup/coreseek-3.2.14/csft-3.2.14/src/sphding. cpp: 20719: undefined reference to 'libiconv _ open'/setup/coreseek-3.2.14/csft-3.2.14/src/sphinx. cpp: 20737: undefined reference to 'libiconv'/setup/coreseek-3.2.14/csft-3.2.14/src/sphinx. cpp: 20743: undefined reference to 'libiconv _ close' collect2: ld returns 1 make [2]: *** [indexer] Error 1 make [2]: leaving directory '/setup/coreseek-3.2.14/csft-3.2.14/src' make [1]: *** [all] error 2 make [1]: leaving directory '/setup/coreseek-3.2.14/csft-3.2.14/src' make: *** [all-recursive] Error 1 solve the libiconv problem at first, and reinstalled several times or the same, finally, I finally found a way to edit it :. in the/src/MakeFile file, change LIBS =-lm-lexpat-L/usr/local/lib to LIBS =-lm-lexpat-liconv-L/usr/local/lib.
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