Installation steps for OMNET++ 5.3.1 are listed by us. Looking on guidance on how to implement this version in your research the be in touch with us for experts’ guidance.
A popular simulation framework for creating network simulators and other discrete event simulation models is called OMNeT++. It is strong, modular, and adaptable. For simulating intricate systems such wireless sensor networks, communication networks, and vehicle networks, OMNeT++ offers a comprehensive environment. Because of the framework’s component-based architecture, users may simply construct reusable modules and incorporate them into bigger simulations. Our work on network simulations and protocol design is done in omnet++ because of its graphical user interface, comprehensive documentation, and support for several extensions.
We have a unique article that you can read here that details the procedures needed to install the omnet++ emulator.
PRE-REQUISITES:
Screenshot:
INSTALL DEPENDENCIES OF OMNET++:
Screenshot:
2.System File Update Command:
First of all, we need to updates the list of available packages and their versions stored in the system’s package index. Use below command to update the system package.
Command: “sudo apt-get update”
Screenshot:
3.Essential Tools Installation Commands:
Command:“sudo apt-get install build-essential gcc g++ python python3 openjdk-8-jdk”
Screenshot:
If you get prompt to select [Y/n], then you must give the Y option to install all the package required for the above command.
Screenshot:
4.Required Tools Installation Commands:
Command: “sudo apt-get install bison flex perl qt5-default libqt5opengl5-dev tcl-dev tk-dev libxml2-dev zlib1g-dev doxygen graphviz libwebkitgtk-1.0 openscenegraph-plugin-osgearth libosgearth-dev openmpi-bin libopenmpi-dev libpcap-dev gnome-color-chooser nemiver”
If you get prompt to select [Y/n], then you must give the Y option to install all the package required for the above command.
Screenshot:
INSTALL OMNET++ SIMULATOR:
We have to download the Omnet++ 5.3.1 under Any directory by the clicking the Link, it will directly download to Download Location and move the compressed file to the Any Directory that you need to install.
Link:–https://github.com/omnetpp/omnetpp/releases/download/omnetpp-5.3.1/omnetpp-5.3.1-src-linux.tgz
Screenshot:
2.Extraction of the omnetpp-5.3.1-src-linux file:
Next, we have to extract the compressed file, right click the file and click Extract here to extract the omnetpp-5.3.1 as folder in the OMNET++ Installation directory.
Screenshot:
Screenshot:
omnetpp-5.3.1 compressed file Extracted Successfully in the OMNET++ Installation directory.
Next, we need to install the OMNET++ in our system so locate the Extracted omnetpp-5.3.1 folder in the OMNET++ Installation directory.
Screenshot:
4.Launching the Terminal in the omnetpp-5.3.1 Folder:
In OMNeT++, “. setenv” command is used to set environment variables that can affect the behavior of the OMNeT++ simulation environment, such as specifying paths or configuration options. Next, we need to use the command in the terminal so launch the terminal in the OMNET++ Directory.
Command: “. setenv”
Screenshot:
Screenshot:
5.Set path for the omnetpp-5.3.1 Folder:
The command “gedit ~/.bashrc” opens the ~/.bashrc file in the gedit text editor. The ~/.bashrc file is a script that runs whenever a new terminal session is started in Bash, allowing you to customize your shell environment by setting environment variables, aliases, and functions.
Command: “gedit ~/.bashrc”
Screenshot:
After the usage of the command, we need to add following lines in the opened text File at the end of the file lines.
Command: “export PATH=$PATH:/home/ubuntu/omnetpp-5.3.1/bin”
Screenshot:
6.OMNET++ 5.3.1 Configuration Process:
Next, we need to configure the OMNET++ packages that extracted and use command “./configure” command in OMNeT++ is a Mandatory step in preparing the simulation environment for building and running simulations. It checks for necessary dependencies, configures the build environment, and generates the Makefile needed for compilation. Running this command ensures that the system is correctly set up according to the specific requirements of OMNeT++, enabling a smooth installation and operation process.
Command: “./configure”
Screenshot
Screenshot:
Screenshot:
OMNET++ 5.3.1 Configuration Process Completed successfully.
7.OMNET++ 3.1 Compilation process:
Next, we need to compile the OMNET++ packages that extracted and use command “make” command in OMNeT++ is used to compile the source code after the configuration step has been completed. It reads the Makefile, generated by the ./configure command, and builds the project by compiling all necessary files and linking them together. This command is essential for transforming the source code into an executable program or library, allowing you to run and test your simulations in OMNeT++.
Command: “make”
Screenshot
Screenshot:
Screenshot:
OMNET++ 5.3.1 Compilation Process Completed successfully.
8.Launching OMNET++ 5.3.1 Simulator:
Omnet++ 5.3.1 is the latest version of the OMNeT++ discrete event simulation framework, offering advanced tools and features for modeling and simulating complex network systems. This version includes updates and improvements in performance, usability, and compatibility, making it more efficient for conducting detailed simulations of communication networks, embedded systems, and other distributed systems. Omnet++ 5.3.1 maintains its modular architecture, enabling users to create, reuse, and extend components easily, while also supporting a wide range of protocols and extensions for specialized simulations.
Here we will Launch the OMNET++ 5.3.1 IDE by using the below command.
Command: “omnetpp”
Screenshot:
Screenshot:
Next, we need to choose the workspace location as your needed location and click Launch to open the OMNET++ IDE.
Screenshot:
Screenshot:
Screenshot:
Here we installed the OMNET++ 5.3.1 Simulator successfully in the Ubuntu 18.04 System.