How To Install Omnet++ In Ubuntu 18.04.1

Опубликовано: 31 Август 2026
на канале: Shivam Maheshwari
11,832
80

#cse247 #computerscienceengineering
step by step installation process of Omnet++ or Omnetpp in Ubuntu 18.04.1

Read This Article:   / omnet  

Before starting the installation, refresh the database of available packages. Type in the terminal:
$ sudo apt-get update

To install the required packages, type in the terminal:

$ sudo apt-get install build-essential gcc g++ bison flex perl \python python3 qt5-default libqt5opengl5-dev tcl-dev tk-dev \libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0 openscenegraph-plugin-osgearth libosgearth-dev openmpi-bin libopenmpi-dev libpcap-dev gnome-color-chooser nemiver

Now Download the omnetpp file from the omnet website https://omnetpp.org/download/
open a new terminal
$ cd Downloads

$ tar xvfz omnetpp-5.4.1-src-linux.tgz

$ cd omnetpp-5.4.1

$ . setenv

** note down space between . and setenv

** Now copy the path which is /home/user/Downloads/omnetpp-5.4.1

$ gedit ~/.bashrc

**Add the following line at the end of the file, then save it:

export PATH=$PATH:/home/user/Downloads/omnetpp-5.4.1/bin

**Here user is your pc-name

**now closed the current terminal which is very important

open a new terminal
$ cd Downloads

$ cd omnetpp-5.2.1

$ ./configure

$ make

$ omnetpp