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 Also search the ns mailing list archive for related posts. 5.配置环境变量 按上面的提示就是了 vi ~/.bashrc 加入以下内容,具体目录参见上面的提示 export PATH="$PATH:/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" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/ninga/ns-allinone-2.30/otcl-1.12, /home/ninga/ns-allinone-2.30/lib" export TCL_LIBRARY="$TCL_LIBRARY:/home/ninga/ns-allinone-2.30/tcl8.4.13/library" 6.重启终端,以便重新载入环境变量,使刚才的配置生效。 7.验证, A:输入ns,出现%表示成功 B:进入ns-allinone-2.30/ns-2.30,./validate(比较费时间)