Install SST Simulator in Ubuntu

This document intended to make the installation of SST Simulator on Ubuntu 16.04 LTS more easier and quicker.

1. Requirements

$ sudo apt install gcc g++ libopenmpi-dev python-dev make automake autoconf libtool-bin

Note: In Ubuntu 14.04, use the following command:

$ sudo apt install gcc g++ libopenmpi-dev openmpi-bin python-dev make automake autoconf libtool

2. Bash Environments

Put SST binary files where it sould go by add these lines in .profile:

# sst simulator start #
export SST_CORE_HOME=$HOME/local/sstcore-7.0.0
export SST_ELEMENTS_HOME=$HOME/local/sstelements-7.0.0
export PATH=$SST_CORE_HOME/bin:$SST_ELEMENTS_HOME/bin:$PATH
# sst simulator stop #

Then:

source ~/.profile

3. Download and Extract

wget https://github.com/sstsimulator/sst-core/releases/download/v7.0.0_Final/sstcore-7.0.0.tar.gz
tar xf sstcore-7.0.0.tar.gz
wget https://github.com/sstsimulator/sst-elements/releases/download/v7.0.0_Final/sstelements-7.0.0.tar.gz
tar xf sstelements-7.0.0.tar.gz

4. Build and install

cd sstcore-7.0.0
./configure --prefix=$SST_CORE_HOME
make all
make install
cd ../sst-elements-library-7.0.0
./configure --prefix=$SST_ELEMENTS_HOME --with-sst-core=$SST_CORE_HOME
make all
make install
cd ..