简体   繁体   中英

compiling error in apertium language pair

I was making english-spanish language pair by following these http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair apertium instructions but after scripting pair when I go:
./autogen.sh --with-lang1=../apertium-en --with-lang2=../apertium-es
With this command I got this error, how can I solve this problem?
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")

All the "modern" Apertium language data uses 3-letter language codes, so that should probably be apertium-eng .

Ensure you've checked out and configured apertium-eng and apertium-spa in the parent dir, eg

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

then in the pair you're making, do

./autogen.sh --with-lang1=../apertium-eng --with-lang2=../apertium-spa
make

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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