bashmakefileapertium

Can't install apertium language packages from source - make command shows errors


I am trying to install apertium-eng-ita package from source (available at https://github.com/apertium/apertium-eng-ita). The system is debian 11 (i tried also on fresh ubuntu, get the same error). So i downloaded all the files into my /root directory (/root/eng-ita contents all the files from provided link) and run:

./autogen.sh

This generated all the necessary files inside the "eng-ita" folder, including "Makefile". But then i run:

make

and see errors like:

apertium-validate-dictionary apertium-eng-ita.eng-ita.dix /bin/bash: apertium-validate-dictionary: command not found make: *** [Makefile:769: eng-ita.autobil.bin] Error 127

I began googling (for example, here is some info - https://wiki.apertium.org/wiki/Installation_troubleshooting) this 127 error and found some information about PATH, but where i can put this PATH to make it work?


Solution

  • If you're installing from source, you should first add the apt source and install apertium-all-dev which will give you make etc. Cf. https://wiki.apertium.org/wiki/Prerequisites_for_Debian you should

    curl -sS https://apertium.projectjj.com/apt/install-nightly.sh | sudo bash
    
    sudo apt-get -f install locales build-essential automake subversion git pkg-config \
                            gawk libtool apertium-all-dev
    

    (But you don't need to install from source if you just want to use the pair and not develop for it. There are nightly debian packages of the latest git commit; after running the first command you can get that package with sudo apt install apertium-eng-ita)