博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
sphinx/coreseek 安装全过程中遇到的一些问题
阅读量:6969 次
发布时间:2019-06-27

本文共 1776 字,大约阅读时间需要 5 分钟。

hot3.png

libsphinx.a(sphinx.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'
libsphinx.a(sphinx.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'
libsphinx.a(sphinx.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'
libsphinx.a(sphinx.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'
libsphinx.a(sphinx.o): In function `xmlUnknownEncoding':
/setup/coreseek-3.2.14/csft-3.2.14/src/sphinx.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 返回 1
make[2]: *** [indexer] 错误 1
make[2]: Leaving directory `/setup/coreseek-3.2.14/csft-3.2.14/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/setup/coreseek-3.2.14/csft-3.2.14/src'

make: *** [all-recursive] 错误 1

解决

一开始以为libiconv的问题,又重装了几次还是一样,最后终于找着办法了
编辑:
./src/MakeFile文件
LIBS = -lm -lexpat -L/usr/local/lib
改成
LIBS = -lm -lexpat -liconv -L/usr/local/lib

转载于:https://my.oschina.net/wuzhaohui/blog/133181

你可能感兴趣的文章
⑨④-如果不发展就可能面临生存窘境
查看>>
最详细的Linux服务器性能参数指标
查看>>
Nginx+resin——session问题
查看>>
伊伦 学习JQuery的$.Ready()与OnLoad事件比较
查看>>
openresty加一堆扩展的dockerfile
查看>>
UE编辑器
查看>>
批处理
查看>>
Maven的安装以及介绍
查看>>
使用HTML写一个简单的跳转登录页面
查看>>
EXP-00091: Exporting questionable statistics
查看>>
dynamic_cast和static_cast的异同
查看>>
多态思想
查看>>
登录嵌套问题
查看>>
质量管理、质量保证、质量控制的区别
查看>>
Linux服务器---gzexe
查看>>
linux1231231111
查看>>
SignalR快速入门
查看>>
跳转页面定位到指定的位置(转)
查看>>
free的用法及free中buffer与cache的区别
查看>>
如何建立一台家庭服务器 02-选择一款操作系统
查看>>