4

我已经在 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. 错误仍然存​​在。

4

4 回答 4

9

在安装 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

对于./configureopenfst,我对 mpdt 错误也做了同样的事情。如果您遇到其他错误,您可以尝试执行相同的操作。

于 2017-01-05T22:17:31.120 回答
1

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

于 2015-06-15T06:07:52.023 回答
1

那么,您可能会遇到如下错误:fst/extensions/pdt/pdt.h header not found

您可以在 ./configure opengrm 时添加 --enable-pdt=true

于 2015-06-15T06:12:49.300 回答
0

我会尝试删除 openfst,然后在系统上进行查找以确保所有 fst/fst.h 文件都消失了。它可能缺少某些东西,或者其他一些软件包可能提供了一个。

此外, --enable-far 最后不应该有 =true 。所以,也许可以这样尝试。

于 2015-03-25T11:23:20.197 回答