Difference between revisions of "Prerequisites for Debian"

From Apertium
Jump to navigation Jump to search
Line 5: Line 5:
 
<pre>
 
<pre>
 
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
 
wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
sudo apt-get install apertium lttoolbox apertium-lex-tools cg3 hfst libapertium3-3.3-dev liblttoolbox3-3.3-dev
+
sudo apt-get -f install apertium lttoolbox apertium-lex-tools cg3 hfst libapertium3-3.3-dev liblttoolbox3-3.3-dev
   
 
# or, to get all dependencies for building a language from svn:
 
# or, to get all dependencies for building a language from svn:
sudo apt-get install locales build-essential automake subversion pkg-config \
+
sudo apt-get -f install locales build-essential automake subversion pkg-config \
 
gawk apertium libapertium3-3.3-dev liblttoolbox3-3.3-dev apertium-lex-tools \
 
gawk apertium libapertium3-3.3-dev liblttoolbox3-3.3-dev apertium-lex-tools \
cg3 hfst libhfst36-dev
+
cg3 hfst libhfst36-dev liblttoolbox3-3.3-0
 
</pre>
 
</pre>
   
Line 23: Line 23:
   
 
<pre>
 
<pre>
sudo apt-get install subversion build-essential pkg-config gawk libxml2 \
+
sudo apt-get -f install subversion build-essential pkg-config gawk libxml2 \
 
libxml2-dev libxml2-utils xsltproc flex automake libtool libpcre3-dev zlib1g-dev
 
libxml2-dev libxml2-utils xsltproc flex automake libtool libpcre3-dev zlib1g-dev
 
</pre>
 
</pre>
Line 29: Line 29:
 
If you need [[Vislcg3#Installing_VISL_CG3|vislcg3/cg-proc/cg-comp]] (Constraint Grammar), you should also do:
 
If you need [[Vislcg3#Installing_VISL_CG3|vislcg3/cg-proc/cg-comp]] (Constraint Grammar), you should also do:
 
<pre>
 
<pre>
sudo apt-get install libboost-dev libgoogle-perftools-dev libicu-dev cmake
+
sudo apt-get -f install libboost-dev libgoogle-perftools-dev libicu-dev cmake
 
</pre>
 
</pre>
   

Revision as of 07:26, 20 August 2014

This page shows how to install the standard dependencies of apertium (and related packages) on Debian / Ubuntu / Mint / other Debian-based operating systems.


If you don't plan on working on the core C++ packages (but only want to work on / use language pairs), you can install all prerequisites with apt-get, using User:Tino Didriksen's repository. The first line here adds this repository to apt, then we can just install the usual way:

wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
sudo apt-get -f install apertium lttoolbox apertium-lex-tools cg3 hfst libapertium3-3.3-dev liblttoolbox3-3.3-dev

# or, to get all dependencies for building a language from svn:
sudo apt-get -f install locales build-essential automake subversion pkg-config \
 gawk apertium libapertium3-3.3-dev liblttoolbox3-3.3-dev apertium-lex-tools \
 cg3 hfst libhfst36-dev liblttoolbox3-3.3-0

(Note that you have to run that first line, you should not install the apertium-related packages that are in the standard Debian/Ubuntu repos if you want to do development, these are massively out-of-date.)

If you just want to use a language pair, you can also install that with e.g. sudo apt-get install apertium-kaz-tat.

If you want to work on a language pair, you'll have to check out the language data from SVN and compile it (but you can still skip the stuff about installing apertium/lttoolbox/apertium-lex-tools).


Otherwise, e.g. if you want to work on the core C++ packages, install their dependencies with apt-get like this:

sudo apt-get -f install subversion build-essential pkg-config gawk libxml2 \
libxml2-dev libxml2-utils xsltproc flex automake libtool libpcre3-dev zlib1g-dev

If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do:

sudo apt-get -f install libboost-dev libgoogle-perftools-dev libicu-dev cmake

Once you've installed these packages, continue to Minimal installation from SVN.


See also

  • Apertium on Ubuntu – more installation and troubleshooting help specific to Ubuntu/Debian