网络仿真技术

20101214 安装运行

 

资源整理:

 

About NS-3

1、 网络论坛(Network Forum):http://www.netforum.com.cn/ (暂不可用) 
2、 台湾柯志亨教授的主页:http://140.116.72.80/~smallko/ns2/ns2.htm 
3、 NS by Example:http://nile.wpi.edu/NS/ 
4、 Ns tutorial:http://www.isi.edu/nsnam/ns/tutorial/index.html 
5、 源码与架构分析:http://www-sop.inria.fr/planete/software/ns-doc/ns-current 
6、 官方手册:~/ns-allinone-2.30/ns-2.30/doc/everything.pdf (源码包中提供)
7、 NS2 学习交流论坛:http://ns2.tech.topzj.com/ (本书官方论坛)
8、 中文书籍:《NS与网络模拟》


About cygwin:

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple 
Problem reports:       http://cygwin.com/problems.html 
Documentation:         http://cygwin.com/docs.html 
FAQ:                   http://cygwin.com/faq/

 

安装:

环境:window XP+cygwin+ns3.9

步骤[1]:

Step 1:

Download & install cygwin . (note: I install it in the recommended directory “{System Root}/cygwin/”). Make sure you select “install” for python and devel . This will ensure you have python and gcc/g++ as well as all of the dependencies. You can do this by clicking on the word default in the list of packages. I left all of the other package options on default for the install.

Step 2:

Download ns3.9. (http://www.nsnam.org/ ) Save the file to “{System Root}/cygwin/home/{your-username}”

Step 3:

Start cygwin. At the cygwin prompt type: “tar xvf ns-allinone-3.9.tar.bz2″. This will unpack the ns3 archive so you can use it.

Step 4:

After it has unpacked, change directory to the new ns3 directory with the following: “cd ns-allinone-3.7.1″. Then build ns3 by typing the following: “./build.py”. You can probably grab a coffee or tea while it compiles.

Step 5:
You should be good to go. You can validate the install by changing directory again to the ns-3.7.1 directory (“cd ns-3.7.1″) and running “./test.py”. It will let you know with a PASS / FAIL for each test case. You can now edit the files yourself. The scenario files are located in “” and the source files are located in “”. Good luck!

 

报错:

/usr/bin/env: python: No such file or directory

解决-〉上文红色部分,cygwin 默认 python and devel 为默认要改为"install".

/usr/bin/env: python: No such file or directory 这个错误为找不到 python, 可以查看release 中没有Python.

参考资料:

[1]http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值