1

我按照这些http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair apertium 说明制作了英语-西班牙语语言对,但是在我编写脚本对之后:
./autogen.sh --with-lang1=../apertium-en --with-lang2=../apertium-es
使用此命令出现此错误,我该如何解决这个问题?
configure: WARNING: apertium-en looks like an apertium dependency, but couldn't find ../apertium-en/apertium-en.pc.in -- wrong directory, or not compiled yet? configure: error: Could not find sources dir for apertium-en (AP_SRC1="../apertium-en")

4

1 回答 1

2

所有“现代”Apertium 语言数据都使用 3 个字母的语言代码,因此可能应该是apertium-eng

确保您已签出并配置apertium-engapertium-spa在父目录中,例如

cd ..
git clone https://github.com/apertium/apertium-eng
git clone https://github.com/apertium/apertium-spa
for l in apertium-{eng,spa}; do ( cd "$l" && ./autogen.sh && make ); done

然后在你正在制作的那对中,做

./autogen.sh --with-lang1=../apertium-eng --with-lang2=../apertium-spa
make
于 2018-04-09T14:38:12.933 回答