转自:Omnet仿真 周大牛的博客:http://hi.baidu.com/yilaguankey/blog/item/4b913d808ae49ddf9023d9b2.html
Omnet++ 4.0 installation for Ubuntu :
$ sudo apt-get install build-essential
$ sudo apt-get install bison flex blt blt-dev libgmp3-dev lmodern giftrans doxygen libxml2-dev graphviz imagemagick sun-java6-jdk
$ sudo apt-get install tcl8.4 tk8.4 tcl8.4-dev tk8.4-dev
$ sudo update-alternatives --config java
Make sure 'java-6-sun' is the default Java VM
$ tar -xvf omnetpp-4.0-src.tgz
edit ~/.bashrc and add the following lines. Make suitable changes to INSERT PATH TO OMNET :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/INSERT PATH TO OMNET/lib
export PATH=$PATH:/INSERT PATH TO OMNET/bin
export TCL_LIBRARY=/usr/share/tcltk/tcl8.4
Open a new terminal
$ cd omnetpp-4.0
$ ./configure
$ make clean
$ make
edit omnetpp-4.0/ide/omnetpp.ini
Look for the following lines :
-Xms64m
-Xmx384m
Modify the lines depending on the amount of RAM you wish to allocate to the Eclipse IDE :
-Xms256m
-Xmx512m
run omnetpp to launch the IDE
Omnet++ 4.0 installation for Windows :
Install Java JDK and make sure the JAVA_HOME is set and PATH points to \bin in the Java JDK
Download omnetpp-4.0-src-windows.zip from [2]
Extract to C:\ so that C:\omnetpp-4.0\ is the main directory
Run the mingwenv.cmd
./configure
make clean
make
Do not close the terminal yet
Run omnetpp to launch the GUI (Eclipse)
Check if the projects build and run
Installing INET framework for Omnet++ 4.0:
Download the INETMANET fork from : [3]
Extract the file to C:\omnetpp-4.0\ so that C:\omnetpp-4.0\inet is the main directory
In the omnetpp GUI (Eclipse): File->Import
Browse and select the the inet directory
Ensure that 'copy into workspace' is unchecked
Build the INET framework : Project->Build All
Check if the inet\examples build and run
小人本潜水在思源的贴边 ID又多 又有钱 快活乐无边 谁知道站总监 他蛮横不留情面 他勾结站长目无天 占我ID夺我钱 我马甲跟他来翻脸 反被他来把经验减 我同学骂他欺新人 反被他捉进了小黑屋里面 874了一百遍啊一百遍 啊 最后他咬舌自尽 遗恨人间 他还将我和马甲赶出了思源 流落在人间 我为求回思源 无奈行乞在贴前 谁知道站总监他实在太阴险 知道此情形竟派人来暗算将我发文狂删到0篇 小人ID强 残命独留全 可怜马甲他 竟遭删 为求养ID 惟有傍人卖身自作践 一面苦赚钱 一面写诗篇 发誓把名气显 手刃总监意志坚啊 从此总监ID念心间 我永铭记此仇不供戴天 |