This README provides detailed instructions for installing Omnetpp and its prerequisites on a Linux system.
- Linux Operating System
- Internet connection
- Sufficient disk space
Before starting, update the package database to ensure you have access to the latest versions of packages.
sudo apt-get update
Install the necessary development tools and libraries.
sudo apt-get install -y build-essential clang lld gdb bison flex perl python3 python3-pip \
qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5opengl5-dev libxml2-dev \
zlib1g-dev doxygen graphviz libwebkit2gtk-4.0-37
Install required Python libraries using pip.
python3 -m pip install --user --upgrade numpy pandas matplotlib scipy seaborn posix_ipc
For Qtenv with 3D visualization, install OpenSceneGraph and osgEarth packages.
sudo apt-get install -y libopenscenegraph-dev
To enable optional parallel simulation support, install MPI packages.
sudo apt-get install -y mpi-default-dev
Download and extract Omnetpp.
wget https://github.com/omnetpp/omnetpp/releases/download/omnetpp-6.0.2/omnetpp-6.0.2-linux-x86_64.tgz
tar xvfz omnetpp-6.0.2-linux-x86_64.tgz
OMNETPP_HOME=$HOME/omnetpp-6.0.2
mv omnetpp* $OMNETPP_HOME
Set environment variables and build Omnetpp.
echo '[ -f "$OMNETPP_HOME/setenv" ] && source "$OMNETPP_HOME/setenv"' >> ~/.bashrc
cd $OMNETPP_HOME
source setenv -f
./configure
make -j $(( ( $(nproc) + 1 ) / 2 ))
Test the installation by running a sample project.
cd $OMNETPP_HOME/samples/aloha
./aloha
Follow these steps to successfully install Omnetpp and its prerequisites on your Linux system.
python3 -m pip install --user --upgrade numpy pandas matplotlib scipy seaborn posix_ipc
is not working for me
I see externally managed environment error
how to fix it?