Installing OMNeT++ 3.x and 4.x on Linux and other Unix-like systems

1. Installing OMNeT++

Download the source package (omnetpp-X.X-src.tgz) from the download area.

Copy the omnetpp archive to the directory where you want to install it (usually your home directory). Extract the archive using the command:

  tar zxvf omnetpp.tgz

A sub-directory called omnetpp will be created which will contain the simulator files. You should now add the following lines to your startup file (.bashrc or .bash_profile if you're using bash; .profile if you're using some other sh-like shell):

  export PATH=$PATH:~/omnetpp/bin
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/omnetpp/lib

(Note: on OMNeT++ 4.0, setting the LD_LIBRARY_PATH is optional) For these variables to be included in the environment you will need to restart the shell before proceeding (logout and login again).

First you should check configure.user to make sure it contains the settings you need:

  vi configure.user

Then the usual GNU-like stuff:


You should now test all samples and check they run correctly. As an example, the dyna example is started by entering the following commands:

  cd ~/omnetpp/samples/dyna

By default the samples will run using the Tcl/Tk environment. You should see nice gui windows and dialogs.

2. Reconfiguring the libraries

If you need to recompile the OMNeT++ components with different flags (e.g. for debugging or optimized for speed), then cd to the top-level omnetpp directory, edit configure.user accordingly, then say:

  make clean

If you want to recompile just a single library, then cd to the directory of the library and type:

  make clean

3. Compiling without Tcl/Tk

When you only have ssh access to a machine (no GUI), you'll need to compile OMNeT++ without the GUI parts. The command:

  NO_TCL=1 ./configure

Aksesoris Mobil | Jasa SEO Jakarta | Marine Contractor

Edit - History - Print - Recent Changes - Search
Page last modified on January 29, 2015, at 08:23 AM