Difference between revisions of "Apertium-quality/Installation"

From Apertium
Jump to navigation Jump to search
(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 …')
 
Line 32: Line 32:
<pre>wget https://github.com/bbqsrc/apertium-quality/tarball/master</pre>
<pre>wget https://github.com/bbqsrc/apertium-quality/tarball/master</pre>


<!--
=== With root ===
=== With root ===
Installing to the root of your Python installation is easy:
Installing to the root of your Python installation is easy:
Line 38: Line 39:
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:
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:
<pre>./autogen.sh --python python3.2</pre>
<pre>./autogen.sh --python python3.2</pre>
-->

=== Without root (user prefix) ===
=== Without root (user prefix) ===
Installation without root is no more difficult than above:
Installation without root is no more difficult than above:

Revision as of 14:47, 19 August 2011

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

Without root (user prefix)

Installation without root is no more difficult than above:

./autogen.sh --prefix ~/yourprefix

After installation, restart your terminal.