User:Jatinluthra14
Installing Apertium on Slackware
This Guide is for Latest Slackware 14.1
- Change user to root and Navigate to other directory:
su cd ~/Downloads
Enter password(if required).
Contents
Install Slapt-get
- For i386
wget http://software.jaos.org/slackpacks/14.1/slapt-get/slapt-get-0.10.2r-i386-1.tgz
- For x86_64
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 the Package
installpkg slapt-get-0.10.2r-x86_64-1.tgz
- Upgrade using Slapt-get:
slapt-get --upgrade
Install dependencies, needed to build Apertium
- Download the packages
- For i486
wget --mirror -p --convert-links -P ./Downloads ftp://ftp.slackware.com/pub/slackware/slackware-14.1/slackware/d/ wget --mirror -p --convert-links -P ./Downloads ftp://ftp.slackware.com/pub/slackware/slackware-14.1/slackware/l/
- For x86_64
wget --mirror -p --convert-links -P ./Downloads ftp://ftp.slackware.com/pub/slackware/slackware64-14.1/slackware64/d/ wget --mirror -p --convert-links -P ./Downloads ftp://ftp.slackware.com/pub/slackware/slackware64-14.1/slackware64/l/
- Install Packages
There will be some new directories made in Downloads Folder.
- For i486
cd ~/Downloads/ftp.slackware.com/pub/slackware/slackware-14.1/slackware/d/ installpkg *.txz cd ~/Downloads/ftp.slackware.com/pub/slackware/slackware-14.1/slackware/l/ installpkg *.txz
- For x86_64
cd ~/Downloads/ftp.slackware.com/pub/slackware/slackware64-14.1/slackware64/d/ installpkg *.txz cd ~/Downloads/ftp.slackware.com/pub/slackware/slackware64-14.1/slackware64/l/ installpkg *.txz
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 Airs in the trunk of apertium. First we will check 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> as your requirement for eg. en-es
Set up environment
This is required for proper installation of apertium. It can be added in .bashrc to prevent typing every time you restart.
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
- Change to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-<language-pair> using
cd
Then in each directory run:
./autogen.sh
make
make install
ldconfig
Finishing up and Testing
- Now, exit root shell:
exit
- To test:
echo "Hello World" | apertium <language-pair>
Slackpkg
This section is an alternative to Slapt-get if it not works for you.
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 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