Difference between revisions of "Apertium-quality/Installation"

From Apertium
Jump to navigation Jump to search
Line 20: Line 20:
 
If you are using another distro such as Ubuntu Natty or Debian Sid, just replace squeeze with the version name: sid, natty, etc.
 
If you are using another distro such as Ubuntu Natty or Debian Sid, just replace squeeze with the version name: sid, natty, etc.
 
-->
 
-->
  +
== With easy_install ==
  +
If you have easy_install installed for Python 3, just run:
  +
<pre>easy_install apertium-quality</pre>
  +
 
== From source ==
 
== From source ==
 
The source code can be acquired in a few ways.
 
The source code can be acquired in a few ways.
Line 32: Line 36:
 
<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:
 
<pre>./autogen.sh</pre>
 
<pre>./autogen.sh</pre>
   
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 environment variable like:
<pre>./autogen.sh --python python3.2</pre>
+
<pre>PYTHON=/path/to/python3 ./autogen.sh</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 11:42, 30 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.

With easy_install

If you have easy_install installed for Python 3, just run:

easy_install apertium-quality

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 environment variable like:

PYTHON=/path/to/python3 ./autogen.sh

Without root (user prefix)

Installation without root is no more difficult than above:

./autogen.sh --prefix ~/yourprefix

After installation, restart your terminal.