Difference between revisions of "Apertium on Fedora"

From Apertium
Jump to navigation Jump to search
(Documentation in English)
Line 1: Line 1:
  +
The installation of Apertium on Fedora is similar to the other distributions.
==Install the prerequisites==
 
  +
  +
==Installing the newest version from SVN ==
  +
Open a Terminal window, authenticate as root and go through the following steps.
  +
  +
Step 0: '''Run a system update''' (Optional)
  +
<pre>su -
  +
yum update</pre>
  +
This is optional, but recommended.
  +
 
Step 1: '''Install the prerequisites.'''
  +
<pre> yum install subversion make gcc gcc-c++ pcre-devel libxml2-devel flex libtool automake autoconf</pre>
  +
  +
Step 2: '''Download apertium, lttoolbox and language pairs from SVN.'''
  +
<pre>
  +
svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk apertium
  +
</pre>
  +
''Note'': The above checkout will download lots of files with all the language pairs. If you have limited bandwidth or disk space (or time), please follow the [[Minimal installation from SVN]] instead.
  +
  +
Step 3: '''Compile and install lttoolbox.'''
  +
<pre>
  +
cd apertium
  +
cd lttoolbox/
  +
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
  +
make
  +
make install
  +
ldconfig
  +
</pre>
  +
  +
Step 4: '''Compile and install apertium.'''
  +
<pre>
  +
cd ..
  +
cd apertium/
  +
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
  +
make
  +
make install
  +
ldconfig
  +
</pre>
  +
  +
Step 5: '''You can now compile the language pairs that you want to use.''' It's the same procedure for every pair.
  +
  +
''Note: we give an example with apertium-fr-es''
  +
<pre>
  +
cd ..
  +
cd apertium-fr-es/
  +
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
  +
make
 
sudo make install
  +
</pre>
  +
  +
Step 6: '''Try it out'''
  +
<pre>
  +
echo "J'ai deux frères" | apertium fr-es
  +
</pre>
   
sudo yum install flex ...
 
   
   

Revision as of 11:39, 22 January 2012

The installation of Apertium on Fedora is similar to the other distributions.

Installing the newest version from SVN

Open a Terminal window, authenticate as root and go through the following steps.

Step 0: Run a system update (Optional)

su -
yum update

This is optional, but recommended.

Step 1: Install the prerequisites.

 yum install subversion make gcc gcc-c++ pcre-devel libxml2-devel flex libtool automake autoconf

Step 2: Download apertium, lttoolbox and language pairs from SVN.

svn co http://apertium.svn.sourceforge.net/svnroot/apertium/trunk apertium

Note: The above checkout will download lots of files with all the language pairs. If you have limited bandwidth or disk space (or time), please follow the Minimal installation from SVN instead.

Step 3: Compile and install lttoolbox.

cd apertium
cd lttoolbox/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make
make install
ldconfig

Step 4: Compile and install apertium.

cd ..
cd apertium/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make
make install
ldconfig

Step 5: You can now compile the language pairs that you want to use. It's the same procedure for every pair.

Note: we give an example with apertium-fr-es

cd ..
cd apertium-fr-es/
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make
sudo make install

Step 6: Try it out

echo "J'ai deux frères" | apertium fr-es