Difference between revisions of "User:Jatinluthra14"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
How to install libreoffice-voikko on Ubuntu/Debian |
|||
== Installing Apertium on Slackware == |
|||
I'm using Ubuntu 15.10 Willy Werewolf |
|||
This guide is for Slackware 14.1. |
|||
=== |
===Install Requirements=== |
||
Type in the following command: |
|||
Change user to root and Navigate to other directory: |
|||
sudo apt-get install libreoffice python3.4 git make sed findutils zip unzip |
|||
Type in the current password and Press Enter. |
|||
cd ~ |
|||
===Install Libvoikko=== |
|||
su |
|||
sudo mkdir ~/Downloads |
|||
cd ~/Downloads |
|||
Install Requirements |
|||
Enter password(if required). |
|||
sudo apt-get install gcc libxml++2.6-dev |
|||
Goto http://sourceforge.net/projects/hfst/files/hfst/source/hfstospell-0.4.0.tar.gz/download?use_mirror=netix & Download |
|||
Change the directory in which it is downloaded. |
|||
Extract by tar xvf hfstospell-0.4.0.tar.gz |
|||
cd hfstospell-0.4.0 |
|||
Compile by ./configure && make && sudo make install && sudo ldconfig |
|||
cd ~ |
|||
Get it |
|||
=== Install slapt-get === |
|||
git clone https://github.com/voikko/corevoikko |
|||
Change directory and Compile |
|||
cd ~/corevoikko/libvoikko/ |
|||
Compile by ./autogen.sh && ./configure && make && sudo make install && sudo ldconfig |
|||
===Install LibreOffice-Voikko=== |
|||
Get it |
|||
* For i386 |
|||
git clone https://github.com/voikko/libreoffice-voikko |
|||
Change Directory and Compile |
|||
wget http://software.jaos.org/slackpacks/14.1/slapt-get/slapt-get-0.10.2r-i386-1.tgz |
|||
cd libreoffice-voikko/ |
|||
make oxt |
|||
===Adding the extension to LibreOffice=== |
|||
Open LibreOffice |
|||
* For x86_64 |
|||
Goto Tools>Extension Manager |
|||
Click on the Add button |
|||
Browse to libreoffice-voikko>build |
|||
Open voikko.oxt |
|||
===Done=== |
|||
wget http://software.jaos.org/slackpacks/14.1-x86_64/slapt-get/slapt-get-0.10.2r-x86_64-1.tgz |
|||
Assuming x86_64: |
|||
* Install slapt-get |
|||
installpkg slapt-get-0.10.2r-x86_64-1.tgz |
|||
* Upgrade the system: |
|||
slapt-get --update |
|||
=== Install dependencies needed to build Apertium === |
|||
* For i486: |
|||
slapt-get --install make-3.82-i486-3 gcc-4.7.1-i486-1 kernel-headers-3.2.29_smp-x86-1 libxml2-2.8.0-i486-1 libxslt-1.1.26-i486-2 \ |
|||
subversion-1.7.6-i486-1 pkg-config-0.25-i486-1 automake-1.11.5-noarch-1 flex-2.5.35-i486-1 libtool-2.4.2-i486-1 pcre-8.33-i486-1 \ |
|||
gawk-4.1.0-i486-2 |
|||
* For x86_64: |
|||
slapt-get --install make-3.82-x86_64-4 gcc-4.8.2-x86_64-1 kernel-headers-3.10.17-x86-3 libxml2-2.9.1-x86_64-1 libxslt-1.1.28-x86_64-1 \ |
|||
subversion-1.7.13-x86_64-1 pkg-config-0.25-x86_64-1 automake-1.11.5-noarch-1 flex-2.5.37-x86_64-1 libtool-2.4.2-x86_64-2 pcre-8.33-x86_64-1 \ |
|||
gawk-4.1.0-x86_64-2 |
|||
=== SVN Checkout === |
|||
SVN or Apache Subversion is a software versioning and revision control system distributed as free software under the Apache License. There are many language |
|||
pairs in the Apertium repository that can be installed. Firstly, check out the repositories: |
|||
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-<language-pair> |
|||
Change <language-pair> to the language pair you want eg. en-es |
|||
=== Set up environment === |
|||
This is required for proper installation of Apertium. This section can be added into .bashrc so that you do not need to retype these when you open up a new terminal. |
|||
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> |
|||
=== Compiling === |
|||
* Change to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-<language-pair> using <code>cd</code> |
|||
Then in each directory run: |
|||
./autogen.sh |
|||
make |
|||
make install |
|||
ldconfig |
|||
=== Finishing up and Testing=== |
|||
* Now, exit root shell: |
|||
exit |
|||
* To test: |
|||
echo <some text of source language> | apertium <language-pair> |
|||
== Troubleshooting == |
|||
=== Slackpkg === |
|||
Installation of the packages can be done with slackpkg if slapt-get does not work. |
|||
wget http://www.slackpkg.org/stable/slackpkg-2.82.0-noarch-2.tgz |
|||
installpkg slackpkg-2.82.0-noarch-2.tgz |
|||
* Configure the mirrors by "pico /etc/slackpkg/mirrors" and commenting out the mirrors not required by adding # symbol at starting of line. |
|||
* Update the gpg by using "slackpkg update gpg" |
|||
* Upgrade using Slackpkg: |
|||
slackpkg update |
|||
slackpkg install-new |
|||
slackpkg upgrade-all |
Revision as of 13:00, 6 January 2016
How to install libreoffice-voikko on Ubuntu/Debian
I'm using Ubuntu 15.10 Willy Werewolf
Contents
Install Requirements
Type in the following command:
sudo apt-get install libreoffice python3.4 git make sed findutils zip unzip
Type in the current password and Press Enter. cd ~
Install Libvoikko
Install Requirements
sudo apt-get install gcc libxml++2.6-dev
Goto http://sourceforge.net/projects/hfst/files/hfst/source/hfstospell-0.4.0.tar.gz/download?use_mirror=netix & Download
Change the directory in which it is downloaded. Extract by tar xvf hfstospell-0.4.0.tar.gz cd hfstospell-0.4.0 Compile by ./configure && make && sudo make install && sudo ldconfig cd ~
Get it
git clone https://github.com/voikko/corevoikko
Change directory and Compile
cd ~/corevoikko/libvoikko/ Compile by ./autogen.sh && ./configure && make && sudo make install && sudo ldconfig
Install LibreOffice-Voikko
Get it
git clone https://github.com/voikko/libreoffice-voikko
Change Directory and Compile
cd libreoffice-voikko/ make oxt
Adding the extension to LibreOffice
Open LibreOffice Goto Tools>Extension Manager Click on the Add button Browse to libreoffice-voikko>build Open voikko.oxt