网络仿真技术

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/





你可能感兴趣的:(网络仿真技术)