Difference between revisions of "Minimal installation from SVN"
(hfst) |
|||
Line 54: | Line 54: | ||
(Use <code>sudo</code> before the last command if you didn't specify a prefix.) |
(Use <code>sudo</code> before the last command if you didn't specify a prefix.) |
||
==For language pairs that use CG (cg-proc) == |
==For language pairs that use CG (vislcg3 / cg-proc) == |
||
Many language pairs now use [[CG]] (e.g. Macedonian→English, Breton→French, Nynorsk-Bokmål, …). For these, you need <code>vislcg3</code> beforehand. See [[Vislcg3#Installing_VISL_CG3]] for installation (use <code>./cmake.sh -DCMAKE_INSTALL_PREFIX=<prefix></code> if you're installing to a prefix). |
Many language pairs now use [[CG]] (e.g. Macedonian→English, Breton→French, Nynorsk-Bokmål, …). For these, you need <code>vislcg3</code> beforehand. See [[Vislcg3#Installing_VISL_CG3]] for installation (use <code>./cmake.sh -DCMAKE_INSTALL_PREFIX=<prefix></code> if you're installing to a prefix). |
||
Note that you have to have [http://site.icu-project.org/ ICU] installed beforehand (available through most GNU/Linux package managers, in Arch Linux as <code>icu</code>, in Debian/Ubuntu as <code>libicu-dev</code>). |
Note that you have to have [http://site.icu-project.org/ ICU] installed beforehand (available through most GNU/Linux package managers, in Arch Linux as <code>icu</code>, in Debian/Ubuntu as <code>libicu-dev</code>). |
||
==For language pairs that use HFST == |
|||
Many language pairs now use HFST (e.g. the Turkic and Saami ones). For these, you need <code>hfst</code> and typically <code>OpenFST</code> and <code>foma</code> beforehand. Follow the installation guides first for [[Foma]] and [[OpenFST]], then [[HFST]]. |
|||
==Troubleshooting== |
==Troubleshooting== |
Revision as of 11:39, 6 December 2012
Installing apertium and a language pair
If you have limited bandwidth or disk space, you might consider to download and install just 3 things:
- lttoolbox
- apertium
- the language pair(s) your are interested in
Here are the commands if you would like the Esperanto-English pair:
svn checkout http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox svn checkout http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium svn checkout http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-eo-en
To see the available language pairs, go to https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/.
Note: certain packages have to be installed before installing Apertium, see the system-specific HOWTO's under Installation for how to install the requirements.
Typically, Apertium is installed under the directory /usr/local
. However, if you want it installed somewhere else or don't want to install it as root, do:
PREFIX=/path/to/where/I/want/Apertium PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig export PKG_CONFIG_PATH
Then, in the lttoolbox and apertium directories, do:
./autogen.sh --prefix=$PREFIX make make install ldconfig
Warning: If you didn't specify $PREFIX
or don't know what this means then do:
./autogen.sh make make install ldconfig
(If you didn't specify a prefix, use sudo
before the last two commands.)
Then, in the directory apertium-eo-en, do:
./autogen.sh --prefix=$PREFIX make make install
(Use sudo
before the last command if you didn't specify a prefix.)
For language pairs that use CG (vislcg3 / cg-proc)
Many language pairs now use CG (e.g. Macedonian→English, Breton→French, Nynorsk-Bokmål, …). For these, you need vislcg3
beforehand. See Vislcg3#Installing_VISL_CG3 for installation (use ./cmake.sh -DCMAKE_INSTALL_PREFIX=<prefix>
if you're installing to a prefix).
Note that you have to have ICU installed beforehand (available through most GNU/Linux package managers, in Arch Linux as icu
, in Debian/Ubuntu as libicu-dev
).
For language pairs that use HFST
Many language pairs now use HFST (e.g. the Turkic and Saami ones). For these, you need hfst
and typically OpenFST
and foma
beforehand. Follow the installation guides first for Foma and OpenFST, then HFST.