sphinx编译安装出错:undefined reference to libiconv 解决

来源: 老季博客    日期: 2017-2-28        作者: 腾讯云/服务器VPS推荐评测/Vultr    阅读数: 15

错误描述

/usr/local/sphinx/src/sphinx.cpp:20060:undefined reference to `libiconv_open’
/usr/local/sphinx/src/sphinx.cpp:20078: undefined reference to `libiconv’
/usr/local/sphinx/src/sphinx.cpp:20084: undefined reference to `libiconv_close’
collect2: ld returned 1exit status
make[2]:***[indexer]Error1
make[2]:Leaving directory `/home/sphinx/src’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sphinx/src’
make: *** [all-recursive] Error 1

解决办法:打开configure文件,找到“#define USE_LIBICONV 1”,将注释去掉,并将1改成0。

链接到文章: https://jiloc.com/43174.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注