Difference between revisions of "Quality control framework/Installation"

From Apertium
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Downloading =
= Downloading =
The Apertium SVN module is always in-sync with the git repository.
The repo isn't on the Apertium SVN yet. In the meantime:

== Using SVN ==

<pre>
$ svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/apertium-quality
</pre>


== Using git ==
== Using git ==
If you have git, you can clone the repository like so:
If you have git, you can clone the repository like so:
<pre>
<pre>
$ git clone git://github.com/bbqsrc/apertiumqa.git
$ git clone git://github.com/bbqsrc/apertium-quality.git
</pre>
</pre>


== Tarball ==
== Tarball ==
If you don't have git (or don't want it), you can just download the tarball like so:
If you don't have git or SVN (or don't want them), you can just download the tarball like so:
<pre>
<pre>
$ wget --no-check-certificate https://github.com/bbqsrc/apertiumqa/tarball/master
$ wget --no-check-certificate https://github.com/bbqsrc/apertium-quality/tarball/master
$ tar xf bbqsrc-apertiumqa-XXXXXXX.tar.gz
$ tar xf bbqsrc-apertium-quality-XXXXXXX.tar.gz # substitute XXXXXXX for actual hash
</pre>
</pre>


Line 20: Line 26:


<pre>
<pre>
# ./autogen.sh
# python setup.py install
</pre>
</pre>


== Rootless Environment ==
== Rootless Environment ==
To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a <code>bin/</code> and <code>lib/</code> directory, so you may use your <code>$HOME</code> directory for this (and it will be used in this example.) To setup a root in your home:
To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a <code>bin/</code> and <code>lib/</code> directory, so you may use your <code>$HOME/local</code> directory for this (and it will be used in this example.) To setup a root in your home:


<pre>
<pre>
$ ./autogen.sh PREFIX=$HOME/local prefixed
$ export PYTHONPATH=$PYTHONPATH:$HOME
$ export PATH=$PATH:$HOME/bin
$ python setup.py install --prefix=$HOME
</pre>
</pre>


You may also add the export lines to your <code>~/.bashrc</code> so that it is automatically set when you enter your shell.
You may also add the export lines to your <code>~/.bashrc</code> so that it is automatically set when you enter your shell. For example:

<pre>
export PATH="$PATH:$HOME/local/bin"
export PYTHONPATH="$PYTHONPATH:$HOME/local/python2.x/site-packages"
</pre>


== Python egg ==
== Python egg ==

Latest revision as of 10:33, 22 May 2011

Downloading[edit]

The Apertium SVN module is always in-sync with the git repository.

Using SVN[edit]

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

Using git[edit]

If you have git, you can clone the repository like so:

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

Tarball[edit]

If you don't have git or SVN (or don't want them), you can just download the tarball like so:

$ wget --no-check-certificate https://github.com/bbqsrc/apertium-quality/tarball/master
$ tar xf bbqsrc-apertium-quality-XXXXXXX.tar.gz # substitute XXXXXXX for actual hash

Installation[edit]

As root[edit]

To install traditionally to the Python library directory on your system:

# ./autogen.sh

Rootless Environment[edit]

To install in a rootless environment, you can create your own personal "system root". A sysroot at a minimum contains a bin/ and lib/ directory, so you may use your $HOME/local directory for this (and it will be used in this example.) To setup a root in your home:

$ ./autogen.sh PREFIX=$HOME/local prefixed

You may also add the export lines to your ~/.bashrc so that it is automatically set when you enter your shell. For example:

export PATH="$PATH:$HOME/local/bin"
export PYTHONPATH="$PYTHONPATH:$HOME/local/python2.x/site-packages"

Python egg[edit]

You may also create a Python egg. If you don't know what this is, you don't need to know.

$ python setup.py bdist_egg