Tej*_*sad 4 c++ text-analysis text-mining ubuntu-14.04 openfst
我已经在Ubuntu中安装了Open Fst并且工作正常.现在我正在尝试安装Open GRM thrax.我尝试过安装2个不同版本的thrax.
Thrax 1.1.0版:
thraxOpenGrm/thrax-1.1.0$ ./configure
Run Code Online (Sandbox Code Playgroud)
以下是我得到的错误.
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
Run Code Online (Sandbox Code Playgroud)
Thrax版本0.1.0:
thraxOpenGrm/thrax-0.1.0$ ./configure
Run Code Online (Sandbox Code Playgroud)
以下是我得到的错误.
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
Run Code Online (Sandbox Code Playgroud)
它会因不同的thrax版本而引发不同的错误.我在这个论坛上阅读了一个解决方案
http://www.openfst.org/twiki/bin/view/Forum/GrmThraxForum
它说openfst必须"建立" ./configure --enable-far=true.我卸载了openfst并使用./configure --enable-far=true和安装它./configure --enable-far.错误仍然存在.
小智 7
在安装openfst期间,您必须键入:
./configure --enable-far=true --enable-pdt=true --enable-mpdt=true
Run Code Online (Sandbox Code Playgroud)
然后你应该安装thrax并在其上输入终端:
export LD_LIBRARY_PATH=/usr/local/lib
Run Code Online (Sandbox Code Playgroud)
为openfst-1.5.4和thrax-1.2.2工作.
当我得到:
checking fst/extensions/pdt/pdt.h usability... no
Run Code Online (Sandbox Code Playgroud)
我补充说:
--enable-pdt=true
Run Code Online (Sandbox Code Playgroud)
到./configure了openfst和我做了mpdt错误一样.如果您遇到其他错误,可以尝试执行相同的操作.
| 归档时间: |
|
| 查看次数: |
1803 次 |
| 最近记录: |