NS在linux下的安装过程

NS在linux下的安装过程
linux版本:suse linux 10.0
ns最新版本:ns2.33
官方下载地址:http://sourceforge.net/project/showfiles.php
group_id=149743&package_id=169689&release_id=588643
今天安装的版本是2.32,首先对ns-allinone-2.32.tar.gz解压,我的安装目录是安装在root根目录下,
tar -zvxf ns-allinone-2.32.tar.gz
cd ns-allinone-2.32/
./install
开始安装ns,然后后开始设置环境变量,
安装完成后,系统出现如下的提示:Please put /root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/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 /root/ns-allinone-2.32/otcl-1.13, /root/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 <paths>
    If you are using sh, you can set it like:
                export LD_LIBRARY_PATH=<paths>

(2) You MUST put /root/ns-allinone-2.32/tcl8.4.15/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 with
cd ns-2.32; ./validate
归根皆底就是要设置环境变量,添加一下三个环境变量:

export PATH=$PATH:/root/ns-allinone-2.32/bin:/root/ns-allinone-2.32/tcl8.4.15/unix:/root/ns-allinone-2.32/tk8.4.15/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/ns-allinone-2.32/otcl-1.13:/root/ns-allinone-2.32/lib

export TCL_LIBRARY=$TCL_LIBRARY:/root/ns-allinone-2.32/tcl8.4.15/library
在安装设置完成之后,运行ns没有出现成功的%,显示command not found.经过检查发现export命令后面的冒号竟然是中文的冒号,把我都搞崩溃了。
在windows下面的安装参考一下网址即可:
http://blog.sina.com.cn/s/blog_3c680f8101008rty.html

你可能感兴趣的:(linux,validation,SuSE,Path,library,Tcl)