繁体   English   中英

Apertium语言对中的编译错误

[英]compiling error in apertium language pair

我通过遵循以下http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair开口指示来制作英语-西班牙语语言对,但是在我编写脚本对之后:
./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")

所有“现代” 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM