4

私はすでにUbuntuにOpen Fstをインストールしており、正常に動作しています。今、Open GRM thrax をインストールしようとしています。2 つの異なるバージョンの 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

スラックス バージョン 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 に答える