首页 / MYSQL / coreseek安装实录
coreseek安装实录
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了coreseek安装实录,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2414字,纯文字阅读大概需要4分钟。
内容图文
1. 系统环境 操作系统版本: ubuntu 11.0.4 要安装的coreseek版本: 3.1 2. 安装实录 #下载所需文件并解压wget http://www.coreseek.cn/uploads/csft/3.1/Source/csft-3.1.tar.gzwget http://www.coreseek.cn/uploads/csft/3.1/Source/mmseg-3.1.tar.gztar -
1. 系统环境
操作系统版本: ubuntu 11.0.4
要安装的coreseek版本: 3.1
2. 安装实录
#下载所需文件并解压 wget http://www.coreseek.cn/uploads/csft/3.1/Source/csft-3.1.tar.gz wget http://www.coreseek.cn/uploads/csft/3.1/Source/mmseg-3.1.tar.gz tar -zxvf mmseg-3.1.tar.gz tar -zxvf csft-3.1.tar.gz #先安装mmseg cd mmseg-3.1/ ./configure -prefix=/usr/local/mmseg make && make install cd ../ #安装coreseek tar -zxvf csft-3.1.tar.gz cd csft-3.1 ./configure -prefix=/usr/local/coreseek -with-mmseg-includes=/usr/local/mmseg/include/mmseg -with-mmseg-libs=/usr/local/mmseg/lib -without-iconv make && make install
3. 安装过程中遇到的问题
错误一:
/usr/local/sphinx/src/sphinx.cpp:15557: undefined reference to `libiconv_open'
libsphinx.a(sphinx.o)(.text+0x53a01): /home/setup/csft-3.1/src/sphinx.cpp:15575: undefined
reference to `libiconv'
libsphinx.a(sphinx.o)(.text+0x53a28): /home/setup/csft-3.1/src/sphinx.cpp:15581: undefined
reference to `libiconv_close'
collect2: ld returned 1 exit status
make[2]: * [indexer] Error 1
make[2]: Leaving directory ` /home/setup/csft-3.1/src '
make[1]: * [all] Error 2
make[1]: Leaving directory ` /home/setup/csft-3.1/src '
make: * [all-recursive] Error 1
解决办法:
修改configure 文件把 #define USE_LIBICONV 0 最后的数值由1改为0
重新编译。
错误二.
libsphinx.a(sphinx.o): In function `ISphTokenizer::Create(CSphTokenizerSettings const&,
/home/setup/csft-3.1/src/sphinx.cpp:3383: undefined reference to `sphCreateGBKChineseTok
/home/setup/csft-3.1/src/sphinx.cpp:3383: undefined reference to `sphCreateGBKChineseTok
collect2: ld return 1
make[2]: *** [indexer] Error 1
make[2]:Leaving directory `/home/setup/csft-3.1/src'
make[1]: *** [all] Error 2
make[1]:Leaving directory `/home/setup/csft-3.1/src'
make: *** [all-recursive] Error 1
解决办法:
打开 ./src/sphinx.cpp 将以下这几句注释掉, 重新编译安装
case TOKENIZER_ZHCN_GBK:
pTokenizer = sphCreateGBKChineseTokenizer
(tSettings.m_sDictPath.cstr(), tSettings.m_nBest); break;
声明: 本文采用 CC BY-NC-SA 3.0 协议进行授权
转载请注明来源:小景的博客
本文链接地址:http://www.phpv5.com/blog/coreseek-install
内容总结
以上是互联网集市为您收集整理的coreseek安装实录全部内容,希望文章能够帮你解决coreseek安装实录所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。