Skip to main content

Simulation of Urban Mobility (SUMO) in Ubuntu 12.04

This post will tell you how to install SUMO 0.12.3 version in Ubuntu 12.04 LTS. Also this post will tell you how to use MOVE for generating VANETs Simulation scenario.

OS Used: Ubuntu 12.04 LTS (64 bit)
Sumo Version : 0.12.3
MOVE.jar (For this to work, Java runtime environment to be installed)
(Also MOVE.jar will support only SUMO 0.12.3). The latest version of SUMO (at the time of writing this post) is sumo 0.21.

Points to be noted:

  • Its always better to use the latest software, but to begin with SUMO needs XMl files are roads, edges, vehicle routes, etc. So MOVE.jar file is just helping in creating the xml files needed by SUMO. But the recent versions of SUMO (0.21) and etc, the XML files are to be generated manually by means of any external xml editors or simply using gedit or vim.
  • Also, the Ubuntu package manager comes default with sumo and sumo-gui command (that can be installed using the command sudo apt-get install sumo , but the python scripts like randomTrips.py, traceExporter.py etc may not work for creating the routes, vehicles, etc. So compiling from the source is the best option for  installing SUMO in Ubuntu.
Steps to install sumo-0.12.3 in Ubuntu 12.04
2. Download MOVE.jar from this location: http://lens1.csie.ncku.edu.tw/MOVE/download.php
2. Execute the following commands one by one 
$] sudo apt-get update
$] sudo apt-get install build-essential autoconf automake libxmu-dev default-jre g++-4.4 libproj-dev libgdal-dev libxerces-c2-dev libfox-1.6-dev
$] export CC=gcc-4.4 CXX=g++-4.4 
$] ./configure
$] make
$] sudo make install
See the screenshot below for successful installation of sumo and sumo-gui. Now you can create the simulations using MOVE and SUMO. 
sumo
sumo

sumo-gui
sumo-gui
Installation of MOVE
MOVE is a software that runs using java run time and helpful in creating the xml files for SUMO. This can be running using the command 
$] java -jar MOVE.jar
Here is the screenshot of all the three windows for MOVE.
move
MOVE
Thats all about the MOVE installation. My next post will be about the creation of xml files using MOVE and to generate traffic files for NS2.

Please pour in your comments for SUMO or MOVE installation. I have created a Virtual image OS for running the SUMO, MOVE and NS2 (if anybody wants the Virtual Image separately, contact me through the comment section or through google plus. I may send you the DVD by Courier after paying the nominal charges)

T S Pradeep Kumar

Comments

  1. Dear sir

    I am using ns2.35 in ubuntu 14.04

    When i am trying to use the sumo installation . i am getting the following errors.

    Kindly help to resolve this issue...

    errors:
    -------
    maestro@ubuntu:/usr/local/src/sumo-0.15.0$ make
    make: *** No targets specified and no makefile found. Stop.
    maestro@ubuntu:/usr/local/src/sumo-0.15.0$ sudo make install
    make: *** No rule to make target `install'. Stop.

    ReplyDelete
  2. when i do sumo-gui they ask me for installing sumo bu apt-get install sumo but i got error

    sumo : Dépend: libgdal1 (>= 1.8.0) mais il n'est pas installable
    E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

    ReplyDelete
  3. thank u sir it is very helpful for me

    ReplyDelete
  4. Hi,

    Can someone help me install SUMO 0.12.3 version in Ubuntu 12.04 LTS (32 bits)? I had already installed it, but the command sumo-gui doesn't work. The sumo-gui wasn't installed and I don't understand why.

    Thanks.

    ReplyDelete
  5. Hi sir,
    I downloaded MOVE but in edge icon the table to insert the values is not present. can anyone help me to solve this problem. I am using ubuntu 12.04 desktop iso image in vmware workstation.

    Thanks.

    ReplyDelete
  6. Hi sir could you please give me your email because I have questions ..

    ReplyDelete
  7. undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
    //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    Makefile:445: recipe for target 'sumo-gui' failed
    make[3]: *** [sumo-gui] Error 1
    make[3]: Leaving directory '/home/user15/sumo-0.12.3/src'
    Makefile:496: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/user15/sumo-0.12.3/src'
    Makefile:360: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/home/user15/sumo-0.12.3/src'
    Makefile:265: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    i am getting an error like this... please help me to resolve it... i am using ubuntu 16.04lts...

    ReplyDelete

Post a Comment

Popular posts from this blog

Installing ns-3.34 in Ubuntu 20.04

This post shows how to install ns 3.34 in Ubuntu 20.04 LTS Prerequisites: Fresh installation of Ubuntu Version 20.04 LTS  ns3.34 can be downloaded from here Follow the video link for complete step by step instructions on the installation.  This version fixes the compilation issues of vanet-routing-compare.cc (bug in ns3.33)  Issue the following commands after opening a terminal  $ sudo apt update $ sudo apt install g++ python3 python3-dev python-dev pkg-config sqlite3 python3-setuptools git qt5-default gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar openmpi-bin openmpi-common openmpi-doc libopenmpi-dev tcpdump wireshark libxml2 libxml2-dev Unzip or untar the ns-allinone-3.34.tar.bz2 in the home folder (in my case its /home/pradeepkumar) $ cd ns-allinone-3.34/ $ ./build.py --enable-examples --enable-tests  Once the installation is completed, you may get an output show

Installation of ns3 in Windows 10 and Windows 11 OS using WSL (Windows Subsystem for Linux)

This post shows how to install ns-3.33 in Windows 10 through WSL (Windows Subsystem for Linux) This posts works for Windows 11 also (I have tested it on a Windows 11 ISO and it works the Same way as mentioned in the following post.) This post will work for ns-3.3x version. Prerequisites : Install Windows Subsystem for Linux with GUI: Please refer the following video  System Information: OS used: Windows 10 and WSL (Ubuntu 20.04) GUI: XServer for Windows NS3 Version: ns-3.33 See the following complete video on how to install ns3 in Windows 10 Step 0 : Open XLaunch Step 1 :  Open WSL using PowerShell and open it as Administrator Command:/  wsl $ xfce4-session The GUI of Ubuntu Opens within Windows 10 OS. Step 2 : Download ns3 from nsnam.org website through Mozilla Firefox browser Step 3: Open a Terminal  $ sudo apt update $ sudo apt install build-essential autoconf automake libxmu-dev python3-pygraphviz cvs mercurial bzr git cmake p7zip-full python3-matplotlib python-tk python3-dev qt5-q

Installing NS-3.32 in Ubuntu 20.04

This is about installing ns version 3.32 in Ubuntu 20.04 LTS. #ns3 #ns3 .32 #networksimulation The commands used in the video are given here. $] sudo apt update $] sudo apt install build-essential autoconf automake libxmu-dev python3-pygraphviz cvs mercurial bzr git cmake p7zip-full python3-matplotlib python-tk python3-dev qt5-qmake qt5-default gnuplot-x11 wireshark Download the ns-allinone-3.32.tar.bz2 package from nsnam.org and copy it to /home/ folder See the full video for detailed instructions Extract it either in GUI or using command $] tar jxvf ns-allinone-3.32.tar.bz2 $] cd ns-allinone-3.32/ $] ./build.py --enable-examples --enable-tests The above command will take some time to install all the packages  You can see the output as shown below ns3 To check whether ns3 installed successfully, use the following commands. $] cd ns-3.32/ $] ./waf --run hello-simulator You should get the output as Hello Simulator $] ./waf --run first This is the example from the ns-3.32/exa