Difference between revisions of "Minimal installation from SVN"
(simpler, I hope) |
|||
Line 2: | Line 2: | ||
==Installing apertium and a language pair== |
==Installing apertium and a language pair== |
||
If you have limited bandwidth |
If you have limited bandwidth, disk space or time, you might consider to download and install just 4 things: |
||
* lttoolbox |
* lttoolbox |
||
Line 28: | Line 28: | ||
</pre> |
</pre> |
||
Then, in the lttoolbox, apertium and apertium-lex-tools directories, do: |
|||
Now you'll configure, build and install each of the modules you checked out, in this order: |
|||
#. <code>lttoolbox</code> |
|||
#. <code>apertium</code> |
|||
#. <code>apertium-lex-tools</code> |
|||
#. the language pair (e.g. <code>apertium-eo-en</code>) |
|||
<code>cd</code> to each of the directories before you run the the commands shown below. |
|||
If you specified a <code>$PREFIX</code> (e.g. to avoid installing as root), then do: |
|||
<pre> |
<pre> |
||
./autogen.sh --prefix=$PREFIX |
./autogen.sh --prefix=$PREFIX |
||
Line 36: | Line 45: | ||
</pre> |
</pre> |
||
If you didn't specify <code>$PREFIX</code> or don't know what this means, then do: |
|||
<pre> |
<pre> |
||
./autogen.sh |
./autogen.sh |
||
Line 44: | Line 52: | ||
sudo ldconfig |
sudo ldconfig |
||
</pre> |
</pre> |
||
Then, in the directory apertium-eo-en, do: |
|||
<pre> |
|||
./autogen.sh --prefix=$PREFIX |
|||
make |
|||
make install |
|||
</pre> |
|||
(Use <code>sudo</code> before the last command if you didn't specify a prefix.) |
|||
==For language pairs that use CG (vislcg3 / cg-proc) == |
==For language pairs that use CG (vislcg3 / cg-proc) == |
Revision as of 07:48, 12 October 2013
Installing apertium and a language pair
If you have limited bandwidth, disk space or time, you might consider to download and install just 4 things:
- lttoolbox
- apertium
- apertium-lex-tools
- the language pair(s) your are interested in
Here are the commands if you would like the Esperanto-English pair:
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/lttoolbox svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-eo-en
If you want another pair than eo-en, only the last line needs changing. To see the available language pairs, go to https://svn.code.sf.net/p/apertium/svn/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
Now you'll configure, build and install each of the modules you checked out, in this order:
- .
lttoolbox
- .
apertium
- .
apertium-lex-tools
- . the language pair (e.g.
apertium-eo-en
)
cd
to each of the directories before you run the the commands shown below.
If you specified a $PREFIX
(e.g. to avoid installing as root), then do:
./autogen.sh --prefix=$PREFIX make make install ldconfig
If you didn't specify $PREFIX
or don't know what this means, then do:
./autogen.sh make sudo make install sudo ldconfig
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.
See also
- Installation – specific info for many different operating systems
- Installation Troubleshooting