Difference between revisions of "Minimal installation from SVN"
Jump to navigation
Jump to search
(44 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
[[Installation minimale depuis SVN|En français]] |
|||
{{TOCD}} |
|||
{{Github-migration-check}} |
|||
==Installing apertium and a language pair== |
|||
<div style="background-color:pink; text-align:center; line-height:2.5; border: 1px solid crimson;">This page is deprecated. </div> |
|||
The information which was here is split across other pages. |
|||
If you have limited bandwidth, disk space or time, you might consider to download and install just 4 things: |
|||
The page contained, |
|||
* lttoolbox |
|||
* apertium |
|||
* apertium-lex-tools |
|||
* the language pair(s) your are interested in |
|||
* How to compile Apertium core. For this, please see [[Install Apertium core by compiling]] |
|||
Here are the commands if you would like the Esperanto-English pair: |
|||
<pre> |
|||
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 |
|||
</pre> |
|||
* How to create new, or compile exisitng, language builds. For a new or mixed pair, see [[How to bootstrap a new pair]]. For existing pairs, see [[Install language data by compiling]], |
|||
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/. |
|||
* Details about the HFST and CG modules. Please see [[Installation of grammar libraries]] |
|||
''Note: certain packages have to be installed before installing Apertium, see the system-specific HOWTO's under [[Installation]] for how to install the requirements.'' |
|||
Or start from the information root at [[Installation]]? |
|||
Typically, Apertium is installed under the directory <code>/usr/local</code>. However, if you want it installed somewhere else or don't want to install it as root, do: |
|||
<pre> |
|||
PREFIX=/path/to/where/I/want/Apertium |
|||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig |
|||
export PKG_CONFIG_PATH |
|||
</pre> |
|||
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 this in each directory: |
|||
<pre> |
|||
./autogen.sh --prefix=$PREFIX |
|||
make |
|||
make install |
|||
ldconfig |
|||
</pre> |
|||
If you didn't specify <code>$PREFIX</code> or don't know what this means, then do this in each directory: |
|||
<pre> |
|||
./autogen.sh |
|||
make |
|||
sudo make install |
|||
sudo ldconfig |
|||
</pre> |
|||
==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). |
|||
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]]. |
|||
==See also== |
|||
* [[Installation]] – specific info for many different operating systems |
|||
* [[Installation Troubleshooting]] |
|||
[[Category:Documentation]] |
|||
[[Category:Installation]] |
|||
[[Category:Documentation in English]] |
Latest revision as of 22:05, 7 March 2018
⚠ WARNING ⚠
This page is out of date as a result of the migration to GitHub. Please update this page with new documentation and remove this warning. If you are unsure how to proceed, please contact the GitHub migration team.
This page is deprecated.
The information which was here is split across other pages.
The page contained,
- How to compile Apertium core. For this, please see Install Apertium core by compiling
- How to create new, or compile exisitng, language builds. For a new or mixed pair, see How to bootstrap a new pair. For existing pairs, see Install language data by compiling,
- Details about the HFST and CG modules. Please see Installation of grammar libraries
Or start from the information root at Installation?