How To Install ns3 on linux ? [转]
来源:互联网 发布:山东省教师网络研修 编辑:程序博客网 时间:2024/05/15 12:51
转自: http://wirelesscafe.wordpress.com/2011/01/15/how-to-install-ns3-on-linux/
Happy New Year to all the readers. Its long, I have not posted any thing on this blog except comments . So, here, today we will see how to install ns3 on linux box. The home page of ns3 is NS3 Home
the current release is ns3.10 (January 5, 2011) and can be downloaded from DOWNLOAD NS3.10
Step 1: Download ns3.10 and save it some where , but on the same machine where you want to install (Just Kidding )
Step 2: open the terminal and go to the folder where ns3.10 tar file is.
Step 3: from the terminal run :
$tar -xvf ns-allinone-3.10.tar.bz2
$cd ns-allinone-3.10
$./build.py
you can provide some options to build.py but as a newbie use the default one
When the build process get over (it will take some time), type
$cd ns-3.10
and now we will validate our installation
$./test.py
the out put of this will be some thing like this:
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’
‘build’ finished successfully (2.010s)
PASS: TestSuite lte-bearer
PASS: TestSuite lte-propagation-loss-model
PASS: TestSuite wimax-fragmentation
PASS: TestSuite lte-phy
…………..PASS: Example examples/tcp/tcp-nsc-lfnPASS: Example examples/wireless/wifi-ap.pyPASS: Example src/contrib/flow-monitor/examples/wifi-olsr-flowmon.py168 of 168 tests passed (168 passed, 0 skipped, 0 failed, 0 crashed, 0 valgrind errors)
Step 4: Now our ns3 is installed and ready to run sample programs.
$ cp examples/tutorial/first.cc scratch/myfirst.cc
$./waf
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’‘build’ finished successfully (15.900s)
Step 5: now it is the time to run the simulation
$ ./waf –run myfirstWaf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’‘build’ finished successfully (1.353s)Sent 1024 bytes to 10.1.1.2Received 1024 bytes from 10.1.1.1Received 1024 bytes from 10.1.1.2
$cp examples/wireless/ofdm-validation.cc scratch/myofdm.cc$./waf
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’[1330/1502] cxx: scratch/myofdm.cc -> build/debug/scratch/myofdm_2.o[1500/1502] cxx_link: build/debug/scratch/myofdm_2.o -> build/debug/scratch/myofdmWaf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’‘build’ finished successfully (5.842s)
$ ./waf –run myofdm
Waf: Entering directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’Waf: Leaving directory `/media/Installations/ns-allinone-3.10/ns-3.10/build’‘build’ finished successfully (1.448s)OfdmRate6MbpsOfdmRate9MbpsOfdmRate12MbpsOfdmRate18MbpsOfdmRate24MbpsOfdmRate36MbpsOfdmRate48MbpsOfdmRate54Mbps
Enjoy Ns3 , soon, I will come back with tutorials on ns3 and dependencies resolution for ns3 (only if some will mention the errors )
- How To Install ns3 on linux ? [转]
- How to Install JPCap on Linux
- How to install GSL on linux(ubuntu)
- How to Install Open vSwitch on Linux
- how-to-install-flume-on-linux
- How to install JDK on Linux
- How to install jdk 1.7 on Linux
- How to install eclipse on linux
- How to install tomcat on linux
- How to install eclipse on ubuntu/linux
- How to Install Python on Linux
- How to install GSL on linux (ubuntu)
- How to install tcpping on Linux
- How to Install Metasploit on Linux Ubuntu
- How To: 5 Steps to Install phpMyAdmin on Linux
- How to install Jboss + DB2 on CentOS Linux 4.5 ?
- how to install apache, PHP and MySQL on Linux
- how to install apache, PHP and MySQL on Linux 2
- addSubview和insertSubview的区别
- 3年外链经验分享
- 【Test Design Studio 3】-04.可同时编辑多个QTP脚本与Action
- LR中的事务(transaction)
- Siri:赋予机器和米老鼠唐老鸭一样的个性化魅力
- How To Install ns3 on linux ? [转]
- js中动态创建关联数组的问题
- 《当程序员的那些快乐日子》(十六)我是怎么上班的(中)
- 载波侦听
- 笔试考察高数之平均要取多少个(0,1)中的随机数才能让和超过1。
- linux中MIB与MB单位的区别
- C语言之random_n
- 虚函数
- 嵌入式软件开发 必须掌握的知识点(三)(有错还望指点^_^)