Difference between revisions of "Minimal installation from SVN"

From Apertium
Jump to navigation Jump to search
(seems the "VAR=value program" way of doing things is a shortcut that doesn't work on all systems (ahem, mac))
(→‎Installing apertium and a language pair: it is not necessary to initialise ans export PKG_CONFIG_PATH each time)
Line 22: Line 22:
 
<pre>
 
<pre>
 
PREFIX=/path/to/where/I/want/Apertium
 
PREFIX=/path/to/where/I/want/Apertium
 
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
 
export PKG_CONFIG_PATH
 
</pre>
 
</pre>
   
 
Then, in the apertium and lttoolbox directories, do:
 
Then, in the apertium and lttoolbox directories, do:
 
<pre>
 
<pre>
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
 
export PKG_CONFIG_PATH
 
 
./autogen.sh --prefix=$PREFIX
 
./autogen.sh --prefix=$PREFIX
 
make
 
make
Line 38: Line 38:
 
Then, in the directory apertium-eo-en, do:
 
Then, in the directory apertium-eo-en, do:
 
<pre>
 
<pre>
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
 
export PKG_CONFIG_PATH
 
 
./autogen.sh --prefix=$PREFIX
 
./autogen.sh --prefix=$PREFIX
 
make
 
make

Revision as of 16:31, 5 October 2011

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 co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium
svn co 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 apertium and lttoolbox directories, do:

./autogen.sh --prefix=$PREFIX
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

For Breton → French, and other pairs which use CG, you need vislcg3. Check it out with:

svn co --username anonymous --password anonymous http://beta.visl.sdu.dk/svn/visl/tools/vislcg3/trunk vislcg3

and install like apertium. 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).

Troubleshooting

Proxy server