我试图使用./configure --enable-far=true --enable-pdt=true --enable-mpdt=true
在Ubuntu上安装Thrax,但以下错误显示
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
我尝试了./configure --enable-far=true --enable-pdt=true --enable-mpdt=true --enable-fst=true
,但错误仍然存在
我也尝试设置CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
,但同样的错误发生了。
我该如何解决这个问题?
报价:/configure--enable far=true--enable pdt=true--启用mpdt=true
。。。这就是openfst的配置选项。
tar xvf openfst-1.7.6.tar.gz
cd openfst-1.7.6/
./configure --prefix=/usr --libexecdir=/usr/lib64 --enable-far=true --enable-pdt=true --enable-mpdt=true
make
sudo make install
即使用prefix=/usr
,库/头文件由thrax自动找到。
tar xvf thrax-1.3.2.tar.gz
cd thrax-1.3.2/
./configure
make && sudo make install
结果,包示例(适用于Ubuntu 19.04及更高版本(https://drive.google.com/drive/folders/1EHvwKt5X54faPT6SKQGkVHWgeUcPIrob?usp=sharing
其他测试版本,openfst/thrax:Ubuntu 16.04.6和18.04.4→没有错误。