Wednesday, September 24, 2014

How to install SUMO 0.21.0 on Linux Ubuntu

Hello everyone...
In this post, we'll install SUMO (Simulation of Urban MObility) from its source.


======================================================

Zero: If you have any older version of SUMO, you can remove it by typing in the terminal:
     sudo apt-get remove sumo

First: Download the the source code of SUMO from its official site (on the right side, under the name 'SUMO sources').
Put it under the directory you want and extract it there. I'll use my own:
     /home/bluemix/Downloads/sumo-0.21.0

Second: You have to get the dependencies that SUMO needs (e.g., GUI, projection library, etc.);
open the terminal (CTRL + ALT + T), and type:
     sudo apt-get install libgdal1h libgdal-dev g++ libxerces-c3.1 libxerces-c-dev libicu-dev libproj-dev libfox-1.6-dev libgl1-mesa-dev libglu1-mesa-dev python
 
After entering your password, you'll have to wait minutes in order to download and install the required packages.

Third: Inside SUMO directory (which is /home/bluemix/Downloads/sumo-0.21.0), type the following:
     ./configure
and then wait for it to complete the configuration (do not close the terminal).

Forth: After finishing the configuration, you should build it, type:
     make

When it completes building, you can install it in the system:
     sudo make install

======================================================


Now, you can run SUMO by typing sumo or sumo-gui if you want it interactively.

No comments :