Difference between revisions of "Apertium on Fedora"

From Apertium
Jump to navigation Jump to search
(already in general)
Line 54: Line 54:
 
</pre>
 
</pre>
   
==Troubleshooting==
 
 
===PCRE missing===
 
 
In case you got the following message or something similar in the terminal...
 
 
<pre>checking for pcreposix.h... no
 
configure: error: *** unable to locate pcreposix.h include
 
file ***</pre>
 
 
...then you will need to install '''pcre-devel''':
 
<pre>yum install pcre-devel</pre>
 
   
 
[[Category:Installation]]
 
[[Category:Installation]]

Revision as of 10:06, 22 November 2013

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://svn.code.sf.net/p/apertium/svn/trunk apertium

Note: The above checkout will download lots of files with all the released 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