Apertium-quality/Installation
Jump to navigation
Jump to search
Contents
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.
Troubleshooting
DistributionNotFound (PYTHONPATH not set)
$ aq-covtest Traceback (most recent call last): File "/usr/local/bin/aq-covtest", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.2/site-packages/distribute-0.6.19-py3.2.egg/pkg_resources.py", line 2710, in <module> working_set.require(__requires__) File "/usr/lib/python3.2/site-packages/distribute-0.6.19-py3.2.egg/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.2/site-packages/distribute-0.6.19-py3.2.egg/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: apertium-quality==0.3
Your PYTHONPATH is most likely not correct (when you did "make install", it told you the path to add to it).