Difference between revisions of "Apertium on Fedora"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
	
| Leftmostcat (talk | contribs)  (→Installing the newest version from SVN:  Update URL) |  (redundant) | ||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| ⚫ | |||
| 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) | |||
| <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://svn.code.sf.net/p/apertium/svn/trunk apertium | |||
| </pre> | |||
| ''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.''' | |||
| <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 | |||
| make install | |||
| </pre> | |||
| Step 6: '''Try it out.''' | |||
| <pre> | |||
| echo "J'ai deux frères" | apertium fr-es | |||
| </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:Documentation in English]] | |||
Latest revision as of 10:10, 22 November 2013
Redirect to:

