Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.18: /home/mozhu/Public/ns-allinone-2.33/{bin,include,lib} tk8.4.18: /home/mozhu/Public/ns-allinone-2.33/{bin,include,lib} otcl: /home/mozhu/Public/ns-allinone-2.33/otcl-1.13 tclcl: /home/mozhu/Public/ns-allinone-2.33/tclcl-1.19 ns: /home/mozhu/Public/ns-allinone-2.33/ns-2.33/ns nam: /home/mozhu/Public/ns-allinone-2.33/nam-1.13/nam xgraph: /home/mozhu/Public/ns-allinone-2.33/xgraph-12.1 gt-itm: /home/mozhu/Public/ns-allinone-2.33/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
Please put /home/mozhu/Public/ns-allinone-2.33/bin:/home/mozhu/Public/ns-allinone-2.33/tcl8.4.18/unix:/home/mozhu/Public/ns-allinone-2.33/tk8.4.18/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/mozhu/Public/ns-allinone-2.33/otcl-1.13, /home/mozhu/Public/ns-allinone-2.33/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/mozhu/Public/ns-allinone-2.33/tcl8.4.18/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.33; ./validate
For trouble shooting, please first read ns problems page Also search the ns mailing list archive for related posts.
有了上面的信息之后,可以看出主要的东西都安装成功了,接下来就是配置环境变量了。打开一个新的控制台,
输入如下命令: $gedit .bashrc
在那里面配置环境变量,内容如下: # .bashrc
# Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
# User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'