http://www.omnetpp.org/staticpages/index.php?page=20051011083906619
http://www.omnetpp.org/pmwiki/index.php?n=Main.InstallingOnUnix
====================
Command Sequence to install omentpp on a default ubuntu (8.04)1. Download the simulator archive from omnetpp.org
2. sudo tar zxf omnetpp-3.4b2-src.tgz -C /usr/local/ ; cd /usr/local/omnetpp-3.4b2
3. sudo apt-get install giftrans doxygen libxml2-dev graphiz imagemagick
4. sudo apt-get install tcl8.4 tk8.4 tcl8.4-dev tk8.4-dev
5. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/omnetpp-3.4b2/lib
6. export TCL_LIBRARY=/usr/share/tcltk/tcl8.4
7. export PATH=$PATH:/usr/local/omnetpp-3.4b2/bin
8. ./configure;make
(Step 5,6,7 may be added into ~/.bash_profile for future convenience.)
OMNeT++ is now ready for discrete event simulation.
For your convenience, you may set the following BASH environment variables:
#ln -s /usr/local/omnetpp-3.4b2/usr/local/omnetpp
export OMNETPP_HOME=/usr/local/omnetpp
===================================
How to ask for help on the mailing list
Before sending off your post:
- Make sure the solution is not already on the web.
This is your own interest, because if it's already there you don't have
to wait for the reply. Where to look: README, INSTALL and other doc in
the package in queston; the manual; the Installation issues page on the
web; mailing list archives, etc.
- Be specific. Nobody will be able to help if you just write "it doesn't work".
If ./configure fails or can't find installed component
Before writing to the mailing list, try to experiment with settings in configure.user.
If you decide to post, please include:
- your OS and OMNeT++ version ("uname -a" output is also useful)
- your configure.user file
- ./configure's output (try "./configure > out.txt", or copy/paste from the console)
- config.log (created by ./configure)
- value of your env vars: PATH, LD_LIBRARY_PATH, TCL_LIBRARY etc.
If OMNeT++ did not recognize your setup but you think it should
have, please post your OS, configure.user settings you needed etc on
the mailing list, so that the configure script can be improved.
If source won't compile
Please provide the detailed error messages, possibly a few lines in the source where they point
Other problems
Please try to be specific about the problem. Try to include
- the operating system, compiler, OMNeT++ and model framework version
- the exact error message if you receive one
- stack trace (bt command in gdb) if you have a crash
- whatever other info you think may be useful for others to figure out what's wrong
======================
Installing OMNeT++ on Linux and other Unix-like systems
1. Installing OMNeT++
Download the source package (omnetpp-X.X-src.tgz) from the omnetpp.org 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
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:
./configure
make
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
./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:
./configure
make clean
make
If you want to recompile just a single library, then cd to the directory of the library and type:
make clean
make
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