Welcome 微信登录

首页 / 操作系统 / Linux / Linux下安装Coreseek提示“/src/sphinx.cpp:22292: undefined reference to”错误的解决办法

今天在64位的CentOS5.8系统下安装coreseek的时候,发现编辑的的时候总是出错
 
/root/coreseek-4.1-beta/csft-4.1/src/sphinx.cpp:22292: undefined reference to `libiconv_open"
 /root/coreseek-4.1-beta/csft-4.1/src/sphinx.cpp:22310: undefined reference to `libiconv"
 /root/coreseek-4.1-beta/csft-4.1/src/sphinx.cpp:22316: undefined reference to `libiconv_close"
 collect2: ld returned 1 exit status
 make[2]: *** [indexer] Error 1
 make[2]: Leaving directory `/root/coreseek-4.1-beta/csft-4.1/src"
 make[1]: *** [all] Error 2
 make[1]: Leaving directory `/root/coreseek-4.1-beta/csft-4.1/src"
 make: *** [all-recursive] Error 1
 
在其它机器上未发现此错误.
 
一开始以为libiconv的问题,又重装了几次还是一样,最后终于找着办法了
 编辑:
 ./src/MakeFile文件
 将
 LIBS = -lm -lexpat -L/usr/local/lib
 改成
 LIBS = -lm -lexpat -liconv -L/usr/local/lib
 
就可以了。更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14Linux在多文件中查找关键词的位置Git管理本地代码相关资讯      Coreseek  Coreseek安装 
  • Sphinx中文分词搜索Coreseek   (05/05/2013 07:19:56)
  • Coreseek为企业级搜索建立索引  (07/23/2012 06:41:00)
  • Ubuntu Coreseek安装配置  (11/26/2010 08:22:02)
  • Ubuntu上Coreseek+PHP的安装  (07/23/2012 06:43:18)
  • coreseek-3.2.13兼容sphinx-0.9.9  (05/07/2011 06:47:59)
本文评论 查看全部评论 (0)
表情: 姓名: 字数