sphinx 0.9.9 在CentOS 5.4 make 时undefined reference to `libiconv_open’

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  即可。
重新编译。安装完成。

3 Comments

  • 电子传真

    16 年 ago / 2009年12月20日 @ 2:05 下午

    支持你,很不错的文章

  • 流量计

    16 年 ago / 2009年12月22日 @ 7:22 下午

    写的不错,支持,顶一下

  • 张张

    16 年 ago / 2009年12月24日 @ 11:23 上午

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

Leave a Comment

发表回复