Difference between revisions of "Prerequisites for Debian"

From Apertium
Jump to navigation Jump to search
(Created page with "This page shows how to install the standard dependencies of apertium (and related packages) on Debian / Ubuntu / Mint / other Debian-based operating systems. Install the ape...")
 
(no longer there)
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
[[Debian için Gereksinimler|Türkçe]]
  +
 
This page shows how to install the standard dependencies of apertium (and related packages) on Debian / Ubuntu / Mint / other Debian-based operating systems.
 
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:
Install the apertium dependencies like this:
 
  +
<pre>
  +
  +
wget https://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
  +
  +
# to get the minimal dependencies for building apertium packages:
  +
sudo apt-get -f install apertium-all-dev
  +
  +
# or, to get all dependencies for building a language from git:
  +
sudo apt-get -f install locales build-essential automake subversion git pkg-config \
  +
gawk libtool apertium-all-dev
  +
</pre>
  +
  +
(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. <code>sudo apt-get install apertium-kaz-tat</code>.
  +
  +
If you want to ''work on'' a language pair, you'll have to [[Minimal installation from SVN|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:
   
 
<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
+
libxml2-dev libxml2-utils xsltproc flex automake libtool libpcre3-dev zlib1g-dev
 
</pre>
 
</pre>
   
  +
If you need [[Vislcg3#Installing_VISL_CG3|vislcg3/cg-proc/cg-comp]] (Constraint Grammar), you should also do:
Once you've installed these packages, continue to [[Minimal installation from SVN]].
 
  +
<pre>
  +
sudo apt-get -f install libboost-dev libgoogle-perftools-dev libicu-dev cmake
  +
</pre>
   
 
Once you've installed these packages, continue to [[Minimal installation from SVN]].
   
''(Note: it is possible to install apertium and some language pairs using apt-get, but the versions there are often out of date. It is not recommended if you want to do development.)''
 
   
   
   
 
[[Category:Installation]]
 
[[Category:Installation]]
  +
[[Category:Documentation in English]]

Revision as of 14:19, 27 November 2019

Türkçe

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 https://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash

# to get the minimal dependencies for building apertium packages:
sudo apt-get -f install apertium-all-dev

# or, to get all dependencies for building a language from git:
sudo apt-get -f install locales build-essential automake subversion git pkg-config \
 gawk libtool apertium-all-dev

(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.