全部博文(78)
分类: 系统运维
2007-11-12 16:03:37
1. Requirements for OMNeT++ and OverSim:
sudo apt-get install tk8.4-dev libgmp3-dev libstatistics-descriptive-perl
If needed, some softwares may also be installed before the installation such as bison flex imagemagick doxygen giftrans blt-dev libxml2-dev lam, etc.
2. Download OMNeT++ from
3. Create a new directory (in the following we assume you want to install OMNeT++ and OverSim to ~/sim/) and extract OMNeT++:
mkdir ~/sim cd ~/sim tar xzf /tmp/omnetpp-3.3-src.tgz
4. Add the following lines to your .bashrc or .profile:
export PATH=$PATH:~/sim/omnetpp-3.3/bin:~/sim/INET-20061020-OverSim-3/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/sim/omnetpp-3.3/lib
5. Optionally edit omnetpp-3.3/configure.user and change CFLAGS for speed and profiling:
CFLAGS='-O3 -DNDEBUG=1 -gstabs+3 -Wall'
6. Compile OMNeT++. If your gcc is older than 4.x please read !
cd ~/sim/omnetpp-3.3 ./configure make
7. Download the patched version of the INET framework and extract in next to your OMNeT++ installation:
cd ~/sim tar xzf /tmp/INET-20061020-OverSim-3.tgz
8. Edit INET-20061020--3/inetconfig and change ROOT to your install of the INET framework:
ROOT=$(HOME)/sim/INET-20061020-OverSim-3
9. Compile the INET framework:
./makemake make
10. Download the latest OverSim snapshot and extract in next to your OMNeT++ installation:
cd ~/sim tar xzf /tmp/OverSim-20070926.tgz
11. Compile OverSim:
cd ~/sim/OverSim-20070926 ./makemake make
PS:
1.About Tcl/Tk
There may be something wrong with Tcl/Tk Path in Debian. The subdirs tcl8.4
, tk8.4
and blt8.4
are not in the same directory /usr/share/Tcltk/.(I have installed oversim again recently, it's not a problem now.)
The environment variable TCL_LIBRARY should point to /usr/share/Tcltk/Tcl8.4, the TK_LIBRARY environment variable should be set to the correct directory "/usr/lib/tk8.4" so that OmNet++ could find the file tk.tcl, or it will report an error "Tcl_Init failed: "Can't find a usable tk.tcl...". I also encounter another error "BLT Tcl/Tk extension NOT FOUND -- please install it". I copy the subdir Blt2.4 to /usr/share/Tcltk/Tcl8.4, then it works well.
2.About LAM/MPI
I wanted to compile with LAM/MPI. Although I've installed lam, but configure autodetect script failed to find Lam. I edited the file configure.user to modify complile options for LAM/MPI. Typing mpic++ -showme can tell you a hint about MPI LIBRARY.
Reference: