Ошибка при установке Open GRM thrax

Я уже установил Open Fst в Ubuntu, и он работает нормально. Теперь я пытаюсь установить 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 ответа

Решение

При установке 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

в ./configure для openfst и я сделал то же самое для ошибки mpdt. Если вы получаете другие ошибки, вы можете попробовать сделать то же самое.

Если вы укажете./configure --enable-far=true, он должен работать. Потому что он установит папку fst в /usr/local/include (вы должны запустить make install при установке opengrm)

Тогда вы можете столкнуться с ошибкой вроде: fst/extensions/pdt/pdt.h header not found

Вы можете добавить --enable-pdt=true, когда./configure opengrm

Я бы попытался удалить openfst и затем выполнить поиск в системе, чтобы убедиться, что все файлы fst / fst.h пропали. Возможно, что-то не хватает или какой-то другой пакет мог бы предоставить один.

Кроме того, --enable-far не должно иметь =true в конце. Так что, может быть, попробовать это так.

Другие вопросы по тегам