Compiling Files For Apertium Use
Our online MT resources are compiled automatically every night
For documentation, see the README file on gtweb, in the catalogue /opt/mt
On your own machine, there is a script that compiles the whole language for you
- sh make-sme-smn.sh
In case the automatic routine does not work
Here is the old documentation, from the old, manual days.
We here use sme-sma as example. Replace sme with smj or smn.
The compilation happens in three steps:
- Compiling the source language transducer
- Compiling the target language transducer
- Compiling the language pair in the apertium catalogue
Compiling the source and target language transducers
We here assume you have the source files for the Saami transducers checked out.
In Giellatekno sme and sma, do (the second, "configure" line does not
cd $GTHOME/langs/sme ./configure --with-hfst --enable-apertium make sudo make install cd $GTHOME/langs/sma ./configure --with-hfst --enable-apertium make sudo make install
You have now created two binary files for each language,
Compile sme as shown above. nob should be compiled as follows:
cd apertium/languages/apertium-nob ./autogen.sh make
Here comes a couple of error messages:
configure:error:You don't have lrx-comp installed
So, install it:
svn co https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools cd apertium-lex-tools ./autogen.sh make sudo make install
configure:error:Package requirements (lttoolbox >= 3.2.0) were not met:
So, find it. Is it where it should? Yes:
But do we find it? No.
Viss du har den korrekt lttoolbox-versjonen, da sett den folgende linjen i $HOME/.profile