How To Install Omnet++ In Ubuntu 18.04.1
step by step installation process of Omnet++ or Omnetpp in Ubuntu 18.04.1
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 -y install build-essential gcc g++ bison flex perl \qt5-default tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre \doxygen graphviz libwebkitgtk-3.0–0 libopenscenegraph-dev \openscenegraph-plugin-osgearth openmpi-bin libopenmpi-dev \python python3 libqt5opengl5-dev openscenegraph-plugin-osgearth libosgearth-dev libpcap-dev gnome-color-chooser nemiver
Now Download the omnetpp file from 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