安装Open GRM thrax时出错

Error while instaling Open GRM thrax

本文关键字:出错 thrax GRM Open 安装      更新时间:2023-10-16

我已经在Ubuntu中安装了Open Fst,它运行良好。现在我正在尝试安装Open GRM thrax。我试着安装了两个不同版本的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安装了它。错误仍然存在。

在安装openfst期间,您必须键入:

./configure --enable-far=true --enable-pdt=true --enable-mpdt=true

然后你应该安装thrax,在上面的时候,输入终端:

export LD_LIBRARY_PATH=/usr/local/lib

曾为我的openfst-1.5.4和thrax-1.2.2工作。

当我得到:

checking fst/extensions/pdt/pdt.h usability... no

我补充道:

--enable-pdt=true

对openfst的./configure,我对mpdt错误也做了同样的操作。如果你遇到其他错误,你可以试着做同样的事情。

如果指定的话/configure--enable far=true,它应该可以工作。因为它将在/usr/local/include下安装fst文件夹(安装opengrm时应运行make-install)

然后,您可能会遇到以下错误:fst/extensions/pdt/pdt.h header not found

您可以添加--enable-pdt=true/配置opengrm

我会尝试删除openfst-against,然后在系统上查找以确保所有fst/fst.h文件都不存在。它可能缺少什么,或者其他包可能提供了一个。

此外,--enable far的末尾不应为=true。所以,也许可以这样试试。