我已经在 Ubuntu 中安装了 Open Fst 并且工作正常。现在我正在尝试安装 Open GRM thrax。我尝试安装 2 个不同版本的 thrax。
Thrax 版本 1.1.0:
thraxOpenGrm/thrax-1.1.0$ ./configure
下面是我得到的错误。
checking how to hardcode library paths into programs... immediate
checking for bison... no
checking for byacc... no
checking for std::tr1::hash<long long unsigned>... yes
checking for __gnu_cxx::slist<int>... yes
checking fst/fst.h usability... yes
checking fst/fst.h presence... no
configure: WARNING: fst/fst.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: fst/fst.h: proceeding with the compiler's result
checking for fst/fst.h... yes
checking fst/extensions/far/far.h usability... yes
checking fst/extensions/far/far.h presence... no
configure: WARNING: fst/extensions/far/far.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: fst/extensions/far/far.h: proceeding with the compiler's result
checking for fst/extensions/far/far.h... yes
checking fst/extensions/pdt/pdt.h usability... no
checking fst/extensions/pdt/pdt.h presence... no
checking for fst/extensions/pdt/pdt.h... no
configure: error: fst/extensions/pdt/pdt.h header not found
Thrax 版本 0.1.0:
thraxOpenGrm/thrax-0.1.0$ ./configure
下面是我得到的错误。
checking how to hardcode library paths into programs... immediate
checking for bison... no
checking for byacc... no
checking for std::tr1::hash<long long unsigned>... yes
checking for __gnu_cxx::slist<int>... yes
checking fst/fst.h usability... no
checking fst/fst.h presence... no
checking for fst/fst.h... no
configure: error: fst/fst.h header not found
它使用不同的 thrax 版本引发不同的错误。我在这个论坛上阅读了一个解决方案。
http://www.openfst.org/twiki/bin/view/Forum/GrmThraxForum
它说 openfst 必须用./configure --enable-far=true
. 我卸载了 openfst 并./configure --enable-far=true
使用./configure --enable-far
. 错误仍然存在。