How to install OMNET++
In the previous post, I have explained what is the OMNET++. Now I want to show you how to install Omnet++ on Ubuntu 18.04 LTS. If you just follow these commands and instractions you will be able to install OMNET without any problem or issues.
System Requirements
How to install Omnet++ on Ubuntu 18.04:
Open your terminal in Ubuntu and then copy and paste these lines.
1 |
sudo -s |
Then enter your password.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
sudo apt-get update && apt-get install -y \ git \ wget \ vim \ build-essential \ gcc \ g++ \ bison \ flex \ perl \ qt5-default \ tcl-dev \ tk-dev \ libxml2-dev \ zlib1g-dev \ default-jre \ doxygen \ graphviz \ xvfb |
Now you should update QT, then just copy and paste the following lines in your terminal:
1 2 3 4 5 6 7 8 9 |
sudo apt-get install -y \ libopenscenegraph-dev \ openscenegraph-plugin-osgearth \ libosgearth-dev \ qt5-default \ libxml2-dev \ zlib1g-dev \ default-jre \ libwebkitgtk-3.0-0 |
open a new terminal change your directory to your download directory:
1 |
cd Downloads |
Download Omnet++ version 5.5.1 with this command or from here.
1 |
wget https://ipfs.omnetpp.org/release/5.5.1/omnetpp-5.5.1-src-linux.tgz |
Now unzip the downloaded OMNET file:
1 |
tar xzf omnetpp-5.5.1-src-linux.tgz |
Go inside the unzipped directory:
1 |
cd omnetpp-5.5.1 |
Set the environment:
1 |
. setenv |
Add the following line at the end of the file, then save it:
Now copy the path which is /home/user/Downloads/omnetpp-5.5.1
instead of the user, you will see your current username.
1 |
gedit ~/.bashrc |
Copay and paste this line in your terminal:(Only change user with your current username)
1 |
export PATH=$PATH:/home/user/Downloads/omnetpp-5.5.1/bin |
Now close the current terminal which is very important
Open your terminal in Ubuntu and then copy and paste these lines.
1 |
sudo -s |
open a new terminal:
1 2 3 |
cd Downloads cd omnetpp-5.5.1 |
Now it’s a right time to configure your omnet++ through this line:
1 |
./configure |
After this commend you should be able to see this message in figure II:

Figure II
As the last step you should insert this line in your terminal which this step based on your system configuration takes around 20 to 30 minutes:
1 |
make |
When this step completed you should be able to run the OMNET++ with this command.
1 |
omnetpp |
Up to here we successfully install Omnet++ on the Ubuntu now it is a time to download and install Simulte.