红联Linux门户
Linux帮助

我的linux版本是Fedora 8 装ns-allinone-2.32

发布时间:2008-03-23 00:40:17来源:红联作者:stillaust
1,先下载 ns-allinone-2.32放在Desktop;
2,tar xvfz ns-allinone-2.32 .tar.gz (其实Frdora点击右键Extract Here就ok了)
3,在 ./install前 下载 Eurane (因为要做UMTS的simulation)
4,tar xvfz ns-2.30_eurane-1.12.diff.gz
5,Eurane 是 for ns-2.30,所以要replace eurane text 里"ns-2.30" to "ns-2.32"
6,再回到ns-allinone-2.32 ./install

install后会出现这样的内容:

Please put /home/sv/ns-allinone-2.32/bin:/home/sv/ns-allinone-2.32/tcl8.4.15/unix:/home/sv/ns-allinone-2.32/tk8.4.15/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/sv/ns-allinone-2.32/otcl-1.13, /home/sv/ns-allinone-2.32/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/sv/ns-allinone-2.32/tcl8.4.15/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.15
and tk8.4.15. They are now installed under /home/sv/ns-allinone-2.32/{bin,include,lib}
After these steps, you can now run the ns validation suite with
cd ns-2.32; ./validate
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive for related posts.

7.修改PATH
export PATH=$PATH:/home/sv/ns-allinone-2.32/bin:/home/sv/ns-allinone-2.32/tcl8.4.15/unix:/home/sv/ns-allinone-2.32/tk8.4.15/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/sv/ns-allinone-2.32/otcl-1.13:/home/sv/ns-allinone-2.32/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/sv/ns-allinone-2.32/tcl8.4.15/library

8,logout 或者 source .bashrc

9,在任意目录下输入ns,如出现%,算是成功 。

但是,并不是百分百的就正确安装好ns了。真正实行例子的时候会出现别的问题。不过具体问题具体分析了。

其实我在这里省了好多想说的话。希望能跟更多关心ns2的朋友交流学习。
文章评论

共有 2 条评论

  1. cross_ 于 2008-03-26 01:44:38发表:

    兄台,能否将较详细的步骤给小弟讲讲.

  2. cross_ 于 2008-03-26 01:43:56发表:

    您好!刚怀着激动的心情看完您的帖.这是Google上唯一谈到NS-2.32的帖.我打算在Fedora8上安装NS-2.32.可是点Install之后似乎出现了很多问题.另外Fedora上如何设置环境变量,还望兄台回复! 请发邮件给我OnCross@gmail.com.期待中.....