0

我尝试在 Ubuntu 上使用 安装 Thrax ./configure --enable-far=true --enable-pdt=true --enable-mpdt=true,但显示以下错误

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,但出现同样的错误。

我该如何解决这个问题?

4

1 回答 1

0

引用:./configure --enable-far=true --enable-pdt=true --enable-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=/usrthrax 会自动找到库/头文件。

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 → 没有错误。

于 2020-03-10T16:46:06.460 回答