Difference between revisions of "User:Jatinluthra14"
Jump to navigation
Jump to search
m |
|||
(133 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
This page was written by Jatin Luthra, a 2016 Google Code-in student, which explains how to install Apertium on FreeBSD |
|||
Installing Apertium on Slackware |
|||
⚫ | |||
This Guide is for Latest Slackware 14.1 |
|||
For Standard Apertium Translation |
|||
pkg install bash gettext libgcrypt libgpg-error libiconv subversion libxml2 libxslt pcre pcre++ pkgconf autoconf automake libtool flex |
|||
If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do: |
|||
Change user to root: |
|||
pkg install cmake icu boost-all gperf iperf iperf3 gawk |
|||
⚫ | |||
<code>su</code> |
|||
Now you can move on to [[Minimal_installation_from_SVN]]. |
|||
Enter password(if required). |
|||
⚫ | |||
For i386 |
|||
<code>wget http://software.jaos.org/slackpacks/14.1/slapt-get/slapt-get-0.10.2r-i386-1.tgz</code> |
|||
For x86_64 |
|||
<code>wget http://software.jaos.org/slackpacks/14.1-x86_64/slapt-get/slapt-get-0.10.2r-x86_64-1.tgz</code> |
|||
Assuming x86_64: |
|||
Open Terminal. Navigate to Downloads Directory. |
|||
<code>cd ~/Downloads</code> |
|||
Install the Package |
|||
<code>installpkg lapt-get-0.10.2r-x86_64-1.tgz</code> |
|||
Slackpkg: |
|||
<code>wget http://www.slackpkg.org/stable/slackpkg-2.82.0-noarch-2.tgz</code> |
|||
<code>installpkg slackpkg-2.82.0-noarch-2.tgz</code> |
|||
Configure the mirrors by <code>pico /etc/slackpkg/mirrors</code> and commenting the mirrors not required by adding # symbol at starting of line. |
|||
Update the gpg by using <code>slackpkg update gpg</code> |
|||
Upgrade using Slackpkg: |
|||
<code>slackpkg update |
|||
slackpkg install-new |
|||
slackpkg upgrade-all</code> |
|||
Upgrade using Slapt-get: |
|||
<code>slapt-get update</code> |
|||
=== Install dependencies, needed to build Apertium === |
|||
Install can be done with Slackpkg as alternative if slapt-get not works |
|||
<code>slapt-get --install make gcc linux-api-headers pcre-dev libxml2-dev libxslt-dev subversion pkg-config automake flex libtool svn</code> |
|||
=== Building === |
|||
=== SVN Checkout === |
|||
<code>svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/lttoolbox |
|||
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium |
|||
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools |
|||
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-<languare-pair></code> |
|||
Change <languare-pair> as your requirement for eg.en-es |
|||
=== Set up enviroment === |
|||
<code>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</code> |
|||
⚫ | |||
Change to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-<languare-pair> using <code>cd</code> |
|||
Then in each directory run: |
|||
<code>./autogen.sh |
|||
make |
|||
make install |
|||
ldconfig</code> |
|||
=== Finishing up and Testing=== |
|||
Now, exit root shell: |
|||
<code>exit</code> |
|||
To test: |
|||
<code>echo "Hello World" | apertium <languare-pair></code> |
Latest revision as of 19:07, 19 December 2016
This page was written by Jatin Luthra, a 2016 Google Code-in student, which explains how to install Apertium on FreeBSD
Install Dependencies[edit]
For Standard Apertium Translation
pkg install bash gettext libgcrypt libgpg-error libiconv subversion libxml2 libxslt pcre pcre++ pkgconf autoconf automake libtool flex
If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do:
pkg install cmake icu boost-all gperf iperf iperf3 gawk
Compiling and Installing Apertium[edit]
Now you can move on to Minimal_installation_from_SVN.