Chinaunix首页 | 论坛 | 博客
  • 博客访问: 241957
  • 博文数量: 78
  • 博客积分: 2956
  • 博客等级: 少校
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:13
文章分类

全部博文(78)

文章存档

2012年(11)

2011年(27)

2008年(30)

2007年(10)

分类: 系统运维

2007-11-12 16:03:37

 

 

1. Requirements for OMNeT++ and OverSim:

  • (optional, for simulation output postprocessing with overStat.pl)
  • ...

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:

阅读(1341) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Emacs

给主人留下些什么吧!~~