Fedora 8下安装ns2.30笔记

注意:在普通用户在Fedora 8下安装ns2.30,最好不要在root下,虽然也可以安装成功,如果提示权限问题,请确认是安如下步骤进行,否则有可能你的解压在非此用户进行的。
1.http://www.isi.edu/nsnam/ns/ns-build.html下载最新版本,我这是ns2.30,ns-allinone-2.30.tar.gz
2.cp到你的目录~/
3.解压:tar -zxvf ns-allinone-2.30.tar.gz
4.安装:cp /ns-allinone-2.30
./install
等上5分钟左右,出现以下信息

Nam has been installed successfully.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.13: /home/ninga/ns-allinone-2.30/{bin,include,lib}
tk8.4.13: /home/ninga/ns-allinone-2.30/{bin,include,lib}
otcl: /home/ninga/ns-allinone-2.30/otcl-1.12
tclcl: /home/ninga/ns-allinone-2.30/tclcl-1.18
ns: /home/ninga/ns-allinone-2.30/ns-2.30/ns
nam: /home/ninga/ns-allinone-2.30/nam-1.12/nam
xgraph: /home/ninga/ns-allinone-2.30/xgraph-12.1
gt-itm: /home/ninga/ns-allinone-2.30/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

Please put /home/ninga/ns-allinone-2.30/bin:/home/ninga/ns-allinone-2.30/tcl8.4.13/unix:/home/ninga/ns-allinone-2.30/tk8.4.13/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/ninga/ns-allinone-2.30/otcl-1.12, /home/ninga/ns-allinone-2.30/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/ninga/ns-allinone-2.30/tcl8.4.13/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.13
and tk8.4.13. They are now installed under /home/ninga/ns-allinone-2.30/{bin,include,lib}

After these steps, you can now run the ns validation suite with
cd ns-2.30; ./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.

相关推荐