Installation steps for OMNET++ 5.1.2 are discussed in a detailed manner. Feel free to reach out if you need guidance on how to use this version in your research.
We describe OMNeT++, a robust, extensible, and modular simulation framework that is frequently used to create models of discrete events and network simulators. Because of its rich feature set, large community support, and open-source nature, it is especially well-liked in academic and research settings. A complete environment for simulating intricate systems, including wireless sensor networks, communication networks, and vehicle networks, is offered by OMNeT++. Because the framework is designed using a component-based architecture, users can create modules that can be easily reused and integrated into larger simulations. For researchers and developers working on network simulations and protocol design, OMNeT++ is the tool of choice due to its graphical user interface, comprehensive documentation, and support for multiple extensions.
We have an exclusive article on the installation of OMNeT++ simulator.
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.1.2 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.1.2/omnetpp-5.1.2-src-linux.tgz
Screenshot:
2.Extraction of the omnetpp-5.1.2-src-linux file:
Next, we have to extract the compressed file, right click the file and click Extract here to extract the omnetpp-5.1.2 as folder in the OMNET++ Installation directory.
Screenshot:
Screenshot:
omnetpp-5.1.2 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.1.2 folder in the OMNET++ Installation directory.
Screenshot:
4.Launching the Terminal in the omnetpp-5.1.2 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.1.2 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.1.2/bin”
Screenshot:
6.OMNET++ 5.1.2 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.1.2 Configuration Process Completed successfully.
7.OMNET++ 1.2 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.1.2 Compilation Process Completed successfully.
NOTE: In case if you got error while compilation process, then use this command “./configure WITH_OSGEARTH=no WITH_OSG=no WITH_QTENV=no”
8.Launching OMNET++ 5.1.2 Simulator:
Omnet++ 5.1.2 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.1.2 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.1.2 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.1.2 Simulator successfully in the Ubuntu 18.04 System.