• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

NS2安装在Ubuntu12

mysql 搞代码 4年前 (2022-01-09) 16次浏览 已收录 0个评论

作者:金良([email protected]) csdn博客:http://blog.gaodaima.com/u012176591 去官网(NS2官网链接)下载你要的安装包版本,我下载的是ns-2.35,是2011年发布的。 把压缩包ns-allinone-2.35.tar.gz解压到你要安装的位置,例如路径/home/jin/下,命令

作者:金良([email protected]) csdn博客:http://blog.gaodaima.com/u012176591

去官网(NS2官网链接)下载你要的安装包版本,我下载的是ns-2.35,是2011年发布的。

把压缩包ns-allinone-2.35.tar.gz解压到你要安装的位置,例如路径/home/jin/下,命令为

tar zxvf ns-allinone-2.35.tar.gz  /home/jin

然后进入解压目录,安装,命令为

./install

顺利地话,几分钟后安装完毕,系统给出以下信息:

Ns-allinone package has been installed successfully.Here are the installation places:tcl8.5.10:	/home/jin/ns-allinone-2.35/{bin,include,lib}tk8.5.10:		/home/jin/ns-allinone-2.35/{bin,include,lib}otcl:		/home/jin/ns-allinone-2.35/otcl-1.14tclcl:		/home/jin/ns-allinone-2.35/tclcl-1.20ns:		/home/jin/ns-allinone-2.35/ns-2.35/nsxgraph:	/home/jin/<strong>本文来源gaodaima#com搞(代@码$网6</strong>ns-allinone-2.35/xgraph-12.2gt-itm:   /home/jin/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns----------------------------------------------------------------------------------Please put /home/jin/ns-allinone-2.35/bin:/home/jin/ns-allinone-2.35/tcl8.5.10/unix:/home/jin/ns-allinone-2.35/tk8.5.10/unixinto your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.IMPORTANT NOTICES:(1) You MUST put /home/jin/ns-allinone-2.35/otcl-1.14, /home/jin/ns-allinone-2.35/lib,     into your LD_LIBRARY_PATH environment variable.    If it complains about X libraries, add path to your X libraries     into LD_LIBRARY_PATH.    If you are using csh, you can set it like:		setenv LD_LIBRARY_PATH     If you are using sh, you can set it like:		export LD_LIBRARY_PATH=(2) You MUST put /home/jin/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental    variable. Otherwise ns/nam will complain during startup.After these steps, you can now run the ns validation suite withcd ns-2.35; ./validateFor trouble shooting, please first read ns problems page http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archivefor related posts.

按照系统给出的信息,进行以下配置:

export PATH="$PATH:/home/jin/ns-allinone-2.35/bin:/home/jin/ns-allinone-2.35/tcl8.5.10/unix:/home/jin/ns-allinone-2.35/tk8.5.10/unix"export LD_LIBRARY_PATH="/home/jin/ns-allinone-2.35/bin:/home/jin/ns-allinone-2.35/tcl8.5.10/unix:/home/jin/ns-allinone-2.35/tk8.5.10/unix"export TCL_LIBRARY="/home/jin/ns-allinone-2.35/tcl8.5.10/library"

然后

apt-get install ns2apt-get install nam
 cd ns-2.35/ ./validate

最后一步需要很长时间,学会等待。。。

执行结束,系统有如下提示:

validate overall report: some tests failed:     ./test-all-newreno ./test-all-tcpOptions ./test-all-tcpVariants ./test-all-aimd ./test-all-frto ./test-all-quickstart ./test-all-manual-routing ./test-all-linksto re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

要获得NS2资料的同学,这里有个网址(资料链接)有大量的学习资源


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:NS2安装在Ubuntu12

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址