Difference between revisions of "Apertium on Ubuntu or Debian"
|Line 108:||Line 108:|
Make a test
Make a test
Revision as of 08:18, 29 June 2007
There a various releases of Ubunutu :
- Dapper Drake
- Edgy Eft
- Feisty Fawn
Several programs that are needed cannot be installed easily on Dapper Drake, because the version available with apt-get are too old. We suggest to install a newer version of Ubuntu as for example Edgy Eft or Feisty Fawn
This is guide to install Apertium under Ubuntu Edgy Eft, aka Ubuntu 6.10
Installing by svn
enter your root password
apt-get install subversion g++ libxml2 libxml2-dev xsltproc flex automake1.9 autoconf libtool
Warning install automake1.9 and not automake Then click yes.
Wait till the packages are downloaded and installed.
Go to the root of your home directory
mkdir local cd local/ mkdir standard unicode cd
svn co http://apertium.svn.sourceforge.net/svnroot/apertium
Go to lttoolbox directory with
Then launch autogen.sh
Launch configure (Replace $USER by your user name)
That last command may takes some minutes.
./autogen.sh PKG_CONFIG_PATH=/home/$USER/local/standard/lib/pkgconfig ./configure --prefix=/home/$USER/local/standard
Do not forget to replace (twice) $USER by your Ubuntu user name.
make make install cd ..
You have then to compile the language pairs that you want to use. It is the same procedure for every pair, we would give an example with apertium-fr-nl
cd apertium-fr-nl/ make apertium-gen-modes modes.xml
Make a test
echo "J'ai deux frères" | apertium /home/$USER/apertium/apertium/apertium-fr-nl fr-nl
Replace $USER with your Ubuntu user name.
Installing tarball (tar.gz)
Go to http://sourceforge.net/project/showfiles.php?group_id=143781&package_id=159345 and download the latest version
tar xzvf lttoolbox-2.0.3.tar.gz (or put the name of a newer version) cd lttoolbox-2.0.3/ ./configure sudo su (enter your password) make
Go to http://sourceforge.net/project/showfiles.php?group_id=143781&package_id=157932 and download the latest version (2.0.3 as of June 2007)
tar xzvf apertium-2.0.3.tar.gz (or put the name of a newer version) cd apertium-2.0.3.tar.gz ./configure
An old version of Apertium is available for Feisty http://packages.ubuntu.com/feisty/libs/apertium
This documentation is partly based on the following ressources: