3

sphinx 0.9.9 在CentOS 5.4 make 时会报名下的错误

/usr/local/sphinx/src/sphinx.cpp:15557: undefined reference to `libiconv_open'
libsphinx.a(sphinx.o)(.text+0x53a01):/usr/local/sphinx/src/sphinx.cpp:15575: undefined
reference to `libiconv'
libsphinx.a(sphinx.o)(.text+0x53a28):/usr/local/sphinx/src/sphinx.cpp:15581: undefined
reference to `libiconv_close'
collect2: ld returned 1 exit status
make[2]: * [indexer] Error 1
make[2]: Leaving directory `/usr/local/sphinx/src'
make[1]: * [all] Error 2
make[1]: Leaving directory `/usr/local/sphinx/src'
make: * [all-recursive] Error 1

官网解决办法:

In the meantime I've change the configuration file and set
#define USE_LIBICONV 0 in line 9626.
修改sphinx/configure 文件

#define USE_LIBICONV 0 把数值由1改为0  即可。
重新编译。安装完成。

  • 电子传真 - 2009年12月20日

    支持你,很不错的文章

  • 流量计 - 2009年12月22日

    写的不错,支持,顶一下

  • 张张 - 2009年12月24日

    博客弄的真好.有空帮我看看http://www.51qulimin.com怎么弄更漂亮.

期待你一针见血的评论,Come on!

不用想啦,马上 "登录"  发表自已的想法.