Apertium on Fedora

From Apertium
Jump to navigation Jump to search

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
make install

Step 6: Try it out.

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

Troubleshooting

PCRE missing

In case you got the following message or something similar in the terminal...

checking for pcreposix.h... no
configure: error: *** unable to locate pcreposix.h include
file ***

...then you will need to install pcre-devel:

yum install pcre-devel