Difference between revisions of "User:Jatinluthra14"
Jump to navigation
Jump to search
Line 57: | Line 57: | ||
<code>slapt-get --install make gcc linux-api-headers pcre-dev libxml2-dev libxslt-dev subversion pkg-config automake flex libtool svn</code> |
<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 === |
=== SVN Checkout === |
||
<code> |
<code> |
||
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/lttoolbox |
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 |
||
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-lex-tools |
||
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-<languare-pair> |
svn checkout https://svn.code.sf.net/p/apertium/svn/trunk/apertium-<languare-pair> |
||
</code> |
</code> |
||
Change <languare-pair> as your requirement for eg.en-es |
Change <languare-pair> as your requirement for eg.en-es |
||
Line 73: | Line 71: | ||
=== Set up enviroment === |
=== Set up enviroment === |
||
<code>LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} |
<code>LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH} |
||
export LD_LIBRARY_PATH |
export LD_LIBRARY_PATH |
||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} |
||
export PKG_CONFIG_PATH</code> |
export PKG_CONFIG_PATH</code> |
||
=== Compiling === |
=== Compiling === |
||
Change to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-<languare-pair> using <code>cd</code> |
* Change to each directory in order: lttoolbox, apertium, apertium-lex-tools, apertium-<languare-pair> using <code>cd</code> |
||
Then in each directory run: |
Then in each directory run: |
||
<code>./autogen.sh |
<code>./autogen.sh |
||
make |
make |
||
make install |
make install |
||
ldconfig</code> |
ldconfig</code> |
||
=== Finishing up and Testing=== |
=== Finishing up and Testing=== |
||
Now, exit root shell: |
* Now, exit root shell: |
||
<code>exit</code> |
<code>exit</code> |
||
To test: |
* To test: |
||
<code>echo "Hello World" | apertium <languare-pair></code> |
<code>echo "Hello World" | apertium <languare-pair></code> |
Revision as of 18:56, 13 December 2015
Installing Apertium on Slackware
This Guide is for Latest Slackware 14.1
Change user to root:
su
Enter password(if required).
Contents
Install Slapt-get and Slackpkg
- 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:
- Open Terminal. Navigate to Downloads Directory.
cd ~/Downloads
- Install the Package
installpkg slapt-get-0.10.2r-x86_64-1.tgz
- Slackpkg:
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
- Upgrade using Slapt-get:
slapt-get update
Install dependencies, needed to build Apertium
- Install can be done with Slackpkg as alternative if slapt-get not works
slapt-get --install make gcc linux-api-headers pcre-dev libxml2-dev libxslt-dev subversion pkg-config automake flex libtool svn
SVN Checkout
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>
Change <languare-pair> as your requirement for eg.en-es
Set up enviroment
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-<languare-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 <languare-pair>