加入收藏 设为首页 联系站长
首页 | 虚拟动态 | Cisco模拟 | Juniper仿真 | 虚拟机 | 网络仿真 | 软件路由 | 技术专题 | 相关软件 | 交流论坛
>首页 -> 网络仿真 -> NS

TOP

NS2.29在Fedora 4中安装的详细过程
[ 录入者:admin | 时间:2007-10-28 00:48:30 | 作者: | 来源: | 浏览:880次 ]
看到好多初学者对安装NS2存在着各种各样的问题,我觉得还是把安装流程详细的写一下吧
Linux版本是FC4,装ns-2.29的时候,先下载ns-allinone-2.29,放在/home/chen/这个目录下。(chen是我的用户名)


1.tar xzvf ns-allinone-2.29



2.修改\home\chen\ns-allinone-2.29\nam-1.11\agent.h文件第73行NULL为0



3.cd ns-allinone-2.29



4. 执行命令: ./install



安装好以后,出现如下内容:



Nam has been installed successfully.

Please compile your gt-itm & sgb2ns separately.

Ns-allinone package has been installed successfully.

Here are the installation places:

tcl8.4.11:      /home/chen/ns-allinone-2.29/{bin,include,lib}

tk8.4.11:               /home/chen/ns-allinone-2.29/{bin,include,lib}

otcl:           /home/chen/ns-allinone-2.29/otcl-1.11

tclcl:          /home/chen/ns-allinone-2.29/tclcl-1.17

ns:             /home/chen/ns-allinone-2.29/ns-2.29/ns

nam:    /home/chen/ns-allinone-2.29/nam-1.11/nam

xgraph: /home/chen/ns-allinone-2.29/xgraph-12.1



----------------------------------------------------------------------------------



Please put /home/chen/ns-allinone-2.29/bin:/home/chen/ns-allinone-2.29/tcl8.4.11/unix:/home/chen/ns-allinone-2.29/tk8.4.11/unix

into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.



IMPORTANT NOTICES:



(1) You MUST put /home/chen/ns-allinone-2.29/otcl-1.11, /home/chen/ns-allinone-2.29/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 <paths>

    If you are using sh, you can set it like:

               export LD_LIBRARY_PATH=<paths>



(2) You MUST put /home/chen/ns-allinone-2.29/tcl8.4.11/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.11

    and tk8.4.11. They are now installed under /home/chen/ns-allinone-2.29/{bin,include,lib}



After these steps, you can now run the ns validation suite with

cd ns-2.29; ./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.





5。修改环境变量vim /home/chen/.bashrc添加如下内容:



export PATH="$PATH:/home/chen/ns-allinone-2.29/bin:/home/chen/ns-allinone-2.29/tcl8.4.11/unix:

/home/chen/ns-allinone-2.29/tk8.4.11/unix"



export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/chen/ns-allinone-2.29/otcl-1.11:/home/chen

/ns-allinone-2.29/lib"



export TCL_LIBRARY="$TCL_LIBRARY:/home/chen/ns-allinone-2.29/tcl8.4.11/library"



做完上面的步骤,logout。然后重新登陆,进入/home/chen/ns-allinone-2.29这个目录,运行ns命令

注意,不要用root账号安装,用其它账号
[上一篇]NS2仿真笔记1 [下一篇]NS在(MAC OS X 10.4)上安装NS心..
※相关文章
 

评论

称  呼:
内  容:

相关栏目

最新文章

热门文章

推荐文章

赞助商链接