Difference between revisions of "Apertium-quality/Installation"

From Apertium
Jump to navigation Jump to search
Line 38: Line 38:
 
=== 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
  +
make && make install && make install-nltk</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 environment variable 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:
Line 45: Line 46:
 
=== 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:
<pre>./autogen.sh --prefix ~/yourprefix</pre>
+
<pre>./autogen.sh --prefix ~/yourprefix
  +
make && make install && make install-nltk</pre>
   
 
After installation, restart your terminal.
 
After installation, restart your terminal.

Revision as of 00:10, 5 October 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
make && make install && make install-nltk

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
make && make install && make install-nltk

After installation, restart your terminal.