Installing on Linux

Salience 6 supports any distribution of Linux with glibc 2.3.4+

For the purpose of this guide, we'll assume that the Salience distribution has been downloaded to /home/devuser/downloads and is being installed in /home/devuser/lexalytics. We'll also assume a 64-bit Linux environment.

1) Download the distribution


Login to the support site and download the current tar distribution and unpack it:

cd /home/devuser/downloads
tar -xjf salience-6.5.0.x-x64.tar.bz2
cp salience-6.5.0.x ../lexalytics

2) Provide the license


The Lexalytics license file can exist anywhere on your system, as it is provided to the Salience API via fully-qualified path. However, for the sake of simplicity, we'll copy it into the root of our installation:

cp license.v5 ../lexalytics/salience-6.0.0.x

3) Set up environment variables


The environment variable lxainstall must be set to the root of your installation. There are other environment variables that can aid with support within various development environments (mainly Java). The following is recommended for your ~/.bash_profile file.

emacs ~/.bash_profile

:pushpin: Note: If you are running Ubuntu, then run emacs ~/.profile instead.

Add the following:

lxainstall=/home/devuser/lexalytics/salience-6.x.x.x
(Note: replace x.x.x with the version you just unpacked) 
export lxainstall

LD_LIBRARY_PATH=$lxainstall/salience/lib
export LD_LIBRARY_PATH

JAVA_HOME=<path-to-your-jdk>
(Note: replace <path-to-your-jdk> with an actual jdk path, e.g. $HOME/jdk1.8.0_24) 
export JAVA_HOME

JAVA_OPTS="-Djava.library.path=$LD_LIBRARY_PATH"
export JAVA_OPTS

PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$lxainstall
export PATH

Refresh your environment:

source ~/.bash_profile

:pushpin: Note: If you are running Ubuntu, then run source ~/.profile instead.

4) Explore the Salience SDK


Now that you have Salience deployed to your system, you can focus on the examples provided for your development environment of choice and getting familiar with the Salience API for that development environment. Use the links below to learn more about getting started with development in the supported languages: