您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

NS2安装在Ubuntu12

2024/3/3 14:18:03发布12次查看
作者:金良(golden1314521@gmail.com) csdn博客:http://blog.csdn.net/u012176591 去官网(ns2官网链接)下载你要的安装包版本,我下载的是ns-2.35,是2011年发布的。 把压缩包ns-allinone-2.35.tar.gz解压到你要安装的位置,例如路径/home/jin/下,命令
作者:金良(golden1314521@gmail.com) csdn博客:http://blog.csdn.net/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/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/unixexport 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/unixexport 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资料的同学,这里有个网址(资料链接)有大量的学习资源
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product