首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > WinXP下Cygwin和NS2.28的安装实验记录
【标  题】:WinXP下Cygwin和NS2.28的安装实验记录
【关键字】:WinXP,Cygwin,NS2.28
【来  源】:http://blog.csdn.net/bravemanly/archive/2007/03/07/1522983.aspx

WinXP下Cygwin和NS2.28的安装实验记录

实验记录

时间:2007-3-7

地点:xxx实验室

实验内容:WindowsXP SP2CygwinNS2.28的安装

实验步骤:

[Cygwin]

1.      Download the cygwin.rar.

 

2.      Decompress the cygwin.rar

 

 

1.      Click the setup.exe to install cygwin.

 

2.      Because the language of operating system is Traditional Chinese. The text of button is shown in Chinese. But you don’t need to worry about this. I think it is shown in English in your computer. Just click “Next”.

 

3.      Then choose “Install from Local Directory”

 

4.      Click “Next”.

(Just keep the settings as they are.)

 

5.      Click “Next”

 

6.      Click “Browse” to choose where the software is. (Please choose “ftp%3a%2f%2fftp.nctu.edu.tw%2fWindows%2fcygwin”)

 

7.      Click “OK”.

 

8.      Click “Next” and you will see the figure shown as follows. In this window, the cygwin setup program let you choose what software you want to install.

 

9.      Click “View” first to make the word “Category “change to “Full”.

 

10.   XFree86-base, XFree86-bin, XFree86-prog, XFree86-lib, XFree86-etc, make, patch, perl, gcc, gcc-g++, gawk, gnuplot, tar and gzip must be chosen. For example, if I want to install XFree-86 base (upper figure), click the “Skip” of “New” column. The “Skip” will be changed to “4.3.0-1” (lower figure).

 

11.  Click “Next”.

(Please be patient. It may take a long time to finish the installation.)

 

12.   When setup is done, it will be shown as following figure. Click “Finish”.

 

 

13.   Click “OK” to finish the cygwin setup program.

 

1.      Click the icon on the desktop.

 

2.      For the first time execution, it will generate some environment parameter setting files. In my computer, Administrator is my login name to windows system. Therefore, the cygwin will create a folder named “Administrator” under home directory. (The actual path for Administrator folder is: c:\cygwin\home\ Administrator) It should be noticed that the login name can not have any space in your name.

 

3.      Download myNS2.

 

4.      Decompress the ns-allinone-2.28.rar.

 

5.      Move this folder under c:\cygwin\home\ Administrator. (P.S. Administrator is my login name)

 

6.      Open a cygwin window

 

7.      Change the path to ns-allinone-2.28/ns-2.28

 

8.      Run the command “./configure; make clean; make

 

9.      Please be patient. It will take some time to finish the compilation.

 

10.    When it is done, it should look like as follows.

 

11.  To make sure that you have successfully installed myNS2, you need to check whether you can find ns.exe under ns-allinone-2.28/ns-2.28

 

12Run the example script to test whether you have setup the path or not.

 

14.   If you see the error message like “ns command not found”, no worry about this. Sometimes even you have setup the path, but it does not work. You can copy the ns.exe (nam.exe) to the same place as the simulation script. Run the simulation with “./ns.exe” and it will be ok.

 

PS实验遇到的问题:

在按照上面的规则第一次安装时,进入startxwin界面后,运行ns,会出现ns command not found,这个时候可以采用一种简单的方法,不用修改环境变量,直接把ns或者nam.exe文件直接拷贝都.tcl脚本文件的文件夹下面,然后再运行就OK

 

申明:

有一些安装过程和顺序借鉴了台湾著名NS家柯志亨博士的安装资料,详细请参考他的网址:http://140.116.72.80/~smallko

 

实验者:廖勇

Blog: http://blog.csdn.net/bravemanly/

Email:bravmanly@163.com

 
Grid computing 新手入门(源自IBM):【上一篇】
微软MFC中CHttpFile的ReadString函数在UNICODE下编译运行结果错误:【下一篇】
【相关文章】
  • [转]WinXP环境下常用的网络命令
  • WinXP环境下的网络命令2
  • cygwin的安装,vi的使用,gcc,g++的使用
  • WINXP开机登录后自动注销
  • 使用Cygwin在windows搭建linux开发平台
  • 初试Cygwin
  • 比较mingw与cygwin
  • WinXP和Win2003超级管理员密码破解
  • cygwin下如何安装GCC
  • WinXP/2000/2003下如何重装TCP/IP协议
  • 【随机文章】
  • BBS(php & mysql)完整版(六) 
  • 进入Flash MX组件时代之一 组件的概念
  • 众星百态!
  • 家庭、邻居共享上网的好方法
  • Win2000+IIS5.0安全配置规范
  • MovieClipLoader类与监听的应用
  • Ant入门
  • 外连接(第二部分)
  • My DEMO
  • khttpd problems
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.