[英]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-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
make
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.