Skip to content

Simmobility Installation

Kakali Basak edited this page Nov 26, 2019 · 51 revisions

Instructions for installing and executing SimMobility

Note: if you are not using a Linux machine, please refer to this page on VM installation before proceeding:

The following instructions have been tested on Ubuntu 16.04 and 18.04. The pre-compiled executable may not always be the latest version. Therefore, in order to use the most current implementation refer to the New Developer's Guide for instructions on building SimMobility from source and maintaining your installation.

  1. Download the SimMobility executable

NOTE: Only the mid-term executable is provided for now. 2. In a terminal, run the following command:

sudo apt-get install libtinyxml-dev libpq-dev xsdcxx liblua5.2-dev g++ cmake libcppunit-dev libjsoncpp-dev libglpk-dev libsoci-dev 
  1. Obtain permission to run the binary. In the simmobility directory, run the following command in a terminal:
    chmod +x ./Release/SimMobility_Medium
    
  2. Run SimMobility from the simmobility directory:
    ./Release/SimMobility_Medium data/simulation.xml data/simrun_MidTerm.xml
    
  3. File any issues on the GitHub issue tracker.

Library version for Ubuntu 16.04

tinyxml: 2.6.2
libboost: 1.58.0.1
libpq-dev: 9.5.12
libxerces-c-dev: 3.1.3
libjsoncpp-dev: 1.7.2
xsdcxx: 4.0.0
liblua5.2-dev: 5.2.4
g++: 4:5.3.1
g++-5: 5.4.0
git: 1:2.7.4
qgit: 2.5
cmake: 3.5.1
libcppunit-dev: 1.13.2
doxygen: 1.8.11
libglpk-dev: 4.57
libssl-dev: 1.0.2
libsoci-dev: 3.2.3
postgresql: 9.1.24
binutils: 2.26.1
libproj-dev: 4.9.2
gdal-bin: 1.11.3
python: 2.7.12
python-pip: 8.1.1

Library version for Ubuntu 18.04

libtinyxml-dev/bionic,now 2.6.2-4 amd64 [installed]
libpq-dev/bionic-updates,now 10.4-0ubuntu0.18.04 amd64 [installed]
libxerces-c-dev/bionic,now 3.2.0+debian-2 amd64 [installed]
libjsoncpp-dev/bionic,now 1.7.4-3 amd64 [installed]
xsdcxx/bionic,now 4.0.0-7build1 amd64 [installed]
g++/bionic,now 4:7.3.0-3ubuntu2 amd64 [installed]
g++-7/bionic,now 7.3.0-16ubuntu3 amd64 [installed,automatic]
git/bionic-updates,bionic-security,now 1:2.17.1-1ubuntu0.1 amd64 [installed]
qgit/bionic,now 2.7-2 amd64 [installed]
cmake/bionic,now 3.10.2-1ubuntu2 amd64 [installed]
libcppunit-dev/bionic,now 1.14.0-3 amd64 [installed]
doxygen/bionic,now 1.8.13-10 amd64 [installed]
libglpk-dev/bionic,now 4.65-1 amd64 [installed]
libssl-dev/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.1 amd64 [installed]
libsoci-dev/bionic,now 3.2.3-2ubuntu2 amd64 [installed]
libsoci-postgresql3.2v5/bionic,now 3.2.3-2ubuntu2 amd64 [installed,automatic]
binutils/bionic-updates,bionic-security,now 2.30-20ubuntu2 18.04 amd64 [installed]
libproj-dev/bionic,now 4.9.3-2 amd64 [installed]
gdal-bin/bionic,now 2.2.3+dfsg-2 amd64 [installed]
libpython-all-dev/bionic,now 2.7.15 rc1-1 amd64 [installed,automatic]
python-pip/bionic-updates,bionic-updates,now 9.0.1-2.3~ubuntu1 all [installed]

Boost 1.67 must be compiled from source for it to work properly on ubuntu 18.04

  1. Go to https://www.boost.org/ and download the latest verion source code (1.67 at time of writing)
  2. Download boost_1_67_0.tar.bz2
  3. cd /path/to/boost_1_58_0.tar.bz2
  4. tar --bzip2 -xf boost_1_58_0.tar.bz2
  5. cd boost_1_67_0/
  6. bash bootstrap.sh
  7. sudo ./b2 install
Clone this wiki locally