Difference between revisions of "Apertium on SliTaz"

From Apertium
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 18: Line 18:


<code>bash</code>
<code>bash</code>

=== Install dependencies, needed to run Apertium ===
<code>tazpkg get-install</code>


=== Install dependencies, needed to build Apertium ===
=== Install dependencies, needed to build Apertium ===
Line 32: Line 28:
=== Clone repositories ===
=== Clone repositories ===


<pre>
<code>svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/lttoolbox
git clone https://github.com/apertium/lttoolbox.git

svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium
git clone https://github.com/apertium/apertium.git
git clone https://github.com/apertium/apertium-lex-tools.git

svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools
git clone https://github.com/apertium/apertium-LANGUAGE_PAIR.git
</pre>

svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-LANGUAGE_PAIR</code>


Where LANGUAGE_PAIR is language pair (e.g. en-eo)
Where LANGUAGE_PAIR is language pair (e.g. en-eo)
Line 70: Line 65:
<code>cd
<code>cd


wget ftp://sunsite.unc.edu/pub/Linux/system/keyboards/console-
wget http://sunsite.unc.edu/pub/Linux/system/keyboards/console-data-1999.08.29.tar.gz

data-1999.08.29.tar.gz


tar -xvf console-data-1999.08.29.tar.gz
tar -xvf console-data-1999.08.29.tar.gz
Line 93: Line 86:
Now, exit root shell:
Now, exit root shell:
<code>exit</code>
<code>exit</code>

[[Category:Installation]]
[[Category:Documentation in English]]

Latest revision as of 02:58, 9 March 2018

Guide prepared by Google Code-In 2014 student Nikita Tsarev.

Prepare for compilation[edit]

If you are booting from Live CD, select default option. If you have already installed SliTaz, everything should work fine. Tested with SliTaz 4.0

Change user to root: su

Install Bash[edit]

tazpkg get-install bash

Make sure, to point /bin/sh to /bin/bash (answer yes on prompt) Now, run bash:

bash

Install dependencies, needed to build Apertium[edit]

Note, that we log all the installed packages to file

for p in make gcc linux-api-headers pcre-dev libxml2-dev libxslt-dev subversion pkg-config automake flex libtool; do tazpkg get-install $p >> ~/pkglog; done

Building[edit]

Clone repositories[edit]

git clone https://github.com/apertium/lttoolbox.git
git clone https://github.com/apertium/apertium.git
git clone https://github.com/apertium/apertium-lex-tools.git
git clone https://github.com/apertium/apertium-LANGUAGE_PAIR.git

Where LANGUAGE_PAIR is language pair (e.g. en-eo)

Set up enviroment[edit]

LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

export LD_LIBRARY_PATH

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}

export PKG_CONFIG_PATH

Compiling[edit]

cd to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-LANGUAGE_PAIR

Then in each directory run:

./autogen.sh

make

make install

ldconfig

Installing Unicode fonts[edit]

cd

wget http://sunsite.unc.edu/pub/Linux/system/keyboards/console-data-1999.08.29.tar.gz

tar -xvf console-data-1999.08.29.tar.gz

tazpkg get-install kbd

cd console-data-1999.08.29

./configure

make

make install

setfont LatArCyrHeb-16

Removing unneeded dependencies[edit]

cat ~/pkglog | grep installed | grep -Eo '^[^ ]+' | while read p; do yes | tazpkg remove $p; done

Now, exit root shell: exit