我是通过遵循这些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")
发布于 2018-04-09 22:38:13
所有的“现代”Apertium语言数据都使用3个字母的语言代码,所以应该是apertium-eng。
确保您已经签出并配置了父目录中的apertium-eng和apertium-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
makehttps://stackoverflow.com/questions/49734234
复制相似问题