NS2安装图解.docx

上传人:b****6 文档编号:7745723 上传时间:2023-01-26 格式:DOCX 页数:15 大小:290.57KB
下载 相关 举报
NS2安装图解.docx_第1页
第1页 / 共15页
NS2安装图解.docx_第2页
第2页 / 共15页
NS2安装图解.docx_第3页
第3页 / 共15页
NS2安装图解.docx_第4页
第4页 / 共15页
NS2安装图解.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

NS2安装图解.docx

《NS2安装图解.docx》由会员分享,可在线阅读,更多相关《NS2安装图解.docx(15页珍藏版)》请在冰豆网上搜索。

NS2安装图解.docx

NS2安装图解

Windows+Cygwin+NS2

ThisdocumentwillshowyouhowtoinstallNS2onWindowsplatform(windows2000orwindowsXP).TheNS2versionforthisdocumentisns-2.27.Ifyouwanttousens-2.28,itisok.Thestepsaresimilar.

[Cygwin]

1.Downloadthesoftwarefromhere.Decompresstherarfile.Youwillseeasetup.exe.Clickthisfile.Itwillbelikethefollowingfigure.

2.BecausethelanguageofoperatingsystemisTraditionalChinese.ThetextofbuttonisshowninChinese.Butyoudon’tneedtoworryaboutthis.IthinkitisshowninEnglishinyourcomputer.Justclick“Next”.

3.Thenchoose“InstallfromLocalDirectory”

4.Click“Next”.

(Justkeepthesettingsastheyare.)

5.Click“Next”

6.Click“Browse”tochoosewherethesoftwareis.(Pleasechoose“ftp%3a%2f%2fftp.nctu.edu.tw%2fWindows%2fcygwin”)

7.Click“OK”.

8.Click“Next”andyouwillseethefigureshownasfollows.Inthiswindow,thecygwinsetupprogramletyouchoosewhatsoftwareyouwanttoinstall.

9.Click“View”firsttomaketheword“Category“changeto“Full”.

10.XFree86-base,XFree86-bin,XFree86-prog,XFree86-lib,XFree86-etc,make,patch,perl,gcc,gcc-g++,gawk,gnuplot,tarandgzipmustbechosen.Forexample,ifIwanttoinstallXFree-86base(upperfigure),clickthe“Skip”of“New”column.The“Skip”willbechangedto“4.3.0-1”(lowerfigure).

11.Click“Next”.

(Pleasebepatient.Itmaytakealongtimetofinishtheinstallation.)

12.Whensetupisdone,itwillbeshownasfollowingfigure.Click“Finish”.

13.Click“OK”tofinishthecygwinsetupprogram.

[NS2setup]

1.Clicktheicononthedesktop.

2.Forthefirsttimeexecution,itwillgeneratesomeenvironmentparametersettingfiles.Inthisexample,smallkoismyloginnametowindowssystem.Therefore,thecygwinwillcreateafoldernamed“smallko”underhomedirectory.(Theactualpathforsmallkofolderis:

c:

\cygwin\home\smallko)Itshouldbenoticedthattheloginnamecannothaveanyspaceinyourname.Forexample,“AB”maycauseerrorswhenyouinstallNS2.(smallko-hpdsismycomputername)

3.Pleasecopyns-allinone-2.27.tar.gzintoyourdirector.Inthisexample,Icopythisfiletoc:

\cygwin\home\smallko.Thendecompressthecompressedfile.Usethecommand“tarxvfzns-allinone-2.27.tar.gz”.

4.Whenthedecompressionisfinished,itwillbeshownasfollows.

5.Begintoinstallns-allinone-2.27.Changepathtothens-allinone-2.27bytyping“cdns-allinone-2.27”.Thentype“./install”.

6.Pleasetype“y”tocontinue.

7.Whenitisfinished,itisshownasfollows.

8.ButbeforeyoustartrunningNS2simulation,youshouldsetthepathfirst.Ihavepreparedonefileforit.Justcopythe“.bashrc”toreplacetheoneunderyourhomedirectory.(Inthisexample,Icopy.bashrctoc:

\cygwin\home\smallko)

[Testing]

1.Toinitialgraphicalmode.(type“startxwin.bat”)

2.Runtheexampletclscript.(Changeto~/ns-allinone-2.27/ns-2.27/ns-tutorial/examples.Thenrunthecommand“nsexample2.tcl)

3.Ifyoucanseethefollowingfigures,congratulations.Youhavesuccessfullyinstallcygwin+ns-2.27underwindowsplatform.

Lastmodified:

2005/06/24

Author:

Chih-Heng,Ke

Website:

http:

//140.116.72.80/~smallko

Email:

smallko@ee.ncku.edu.tw

Phdcandidate,EEDepartment,NCKU,Taiwan

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 研究生入学考试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1