Apertium-quality/Installation

From Apertium
< Apertium-quality
Revision as of 00:49, 19 August 2011 by Gekz (talk | contribs) (Created page with '== Requirements == You must have: * Python >=3.1 Recommended for installation: * python3-lxml [http://lxml.de] * python3-nltk (Available in my repository; explained later) All …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Requirements

You must have:

  • Python >=3.1

Recommended for installation:

  • python3-lxml [1]
  • python3-nltk (Available in my repository; explained later)

All other dependencies are installed automatically.

On Debian or Ubuntu

If you have root access on Debian or Ubuntu, installing apertium-quality and all of its dependencies couldn't be easier! For example, if you're running Debian Squeeze, just run the following commands:

sudo echo "deb http://packages.bbqsrc.net/apt squeeze main" >> /etc/apt/sources.list
curl http://packages.bbqsrc.net/packages.pub | sudo apt-key add -
sudo apt-get update && sudo apt-get install python3-apertium-quality

If you are using another distro such as Ubuntu Natty or Debian Sid, just replace squeeze with the version name: sid, natty, etc.

From source

The source code can be acquired in a few ways.

Git:

git clone git://github.com/bbqsrc/apertium-quality.git

SVN:

svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-quality

Tarball:

wget https://github.com/bbqsrc/apertium-quality/tarball/master

With root

Installing to the root of your Python installation is easy:

./autogen.sh

Enter yes when prompted. If errors are spat about incorrect Python version being detected, tell it which Python 3 to use with the --python flag like:

./autogen.sh --python python3.2

Without root (user prefix)

Installation without root is no more difficult than above:

./autogen.sh --prefix ~/yourprefix

After installation, restart your terminal.