歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下安裝Coreseek提示“/src/sphinx.cpp:22292: undefined reference to”錯誤的解決辦法

Linux下安裝Coreseek提示“/src/sphinx.cpp:22292: undefined reference to”錯誤的解決辦法

日期:2017/2/28 14:51:29   编辑:Linux教程

今天在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=14

Copyright © Linux教程網 All Rights Reserved