LEPTON can be installed either from an archive that contains only executable code, or from an archive that contains source code.
In the following we assume you wish to install LEPTON on a Linux platform, as this is the most commonly used platform for experimentation in opportunistic networking.
LEPTON is 100% Java code and therefore requires a recent JRE (Java Runtime Environment) to be installed on your system.
If you plan to compile the source code, you actually need to have a JDK (Java Development Kit) installed and you will need Maven (Java software project management).
Download the latest LEPTON archive:
wget http://casa-irisa.univ-ubs.fr/download/lepton.zip
Unzip this archive:
unzip lepton.zip
Load LEPTON's dependencies from Maven repositories:
wget -i lepton/libs/dependencies -P lepton/libs
Set environment variable LEPTON_HOME
so it points to the
folder you've just created, and add a path to LEPTON's binaries in PATH
:
cat << EOF >> ~/.$(basename $SHELL)rc
#
# LEPTON_HOME environment variable
export LEPTON_HOME="${PWD}/lepton"
export PATH="\${PATH}:\${LEPTON_HOME}/bin"
#
EOF
source ~/.$(basename $SHELL)rc
Download the latest LEPTON source archive:
wget http://casa-irisa.univ-ubs.fr/download/lepton-src.zip
Unzip this archive:
unzip lepton_src.zip
Compile LEPTON:
cd lepton ; make ; cd ..
Set environment variable LEPTON_HOME
so it points to the
folder you've just created, and add a path to LEPTON's binaries in PATH
:
cat << EOF >> ~/.$(basename $SHELL)rc
#
# LEPTON_HOME environment variable
export LEPTON_HOME="${PWD}/lepton"
export PATH="${PATH}:${LEPTON_HOME}/bin"
#
EOF
source ~/.$(basename $SHELL)rc