https://sourceforge.net/project/showfiles.php?group_id=149743&package_id=169689&release_id=684492
$cp ns-allinone-2.34.tar /opt/
$cd /opt/
$tar -xzf ns-allinone-2.34.tar.gz
$cd ns-allinone-2.34
$./install
Please put
/opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-2.34/ tk8.4.18/unix into your PATH environment;
so that you'll be able to run itm/tclsh/wish/xgraph.
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 as: setenv LD_LIBRARY_PATH If you are using sh, you can set it as: export LD_LIBRARY_PATH=
After these steps, you can now run the ns validation suite withscd ns-2.34; ./validate</li>
</ul>
For trouble shooting, please first read ns problems page
https://www.isi.edu/nsnam/ns/ns-problems.html.
Also search the ns mailing list archive for related posts.
$cd /etc
$gedit ~/.bashrc &
# LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ns-allinone-2.34/otcl-1.13:/opt/ns-allinone-2.34/lib
# TCL_LIBRARY
export TCL_LIBRARY=$TCL_LIBRARY:/opt/ns-allinone-2.34/tcl8.4.18/library
# PATH
export PATH=$PATH:/opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-2.34/tk8.4.18/unix
$ source ~/.bashrc
You can check what is written in your path by writing
$echo $PATH
$echo $LD_LIBRARY_PATH
$echo $TCL_LIBRARY
$ns
Then, a "%" will appear on the screen. Type the word "exit" to quit the mode.
$cd /opt/ns-allinone-2.34/ns-2.34/
$./validate