/home/admin/ns-allinone-2.27/bin:/home/admin/ns-allinone 2.27/tcl8.4.5/unix:/home/admin/ns-allinone-2.27/tk8.4.5/unix
into your PATH environment; so that you’ll be able to run
itm/tclsh/wish/xgraph.
You MUST put /home/admin/ns-allinone-2.27/otcl-1.8, /home/admin/ns-allinone- 2.27/lib, into your LD_LIBRARY_PATH environment variable.
PATH=$PATH:$HOME/bin:/home/admin/ns2/ns-allinone- 2.27/bin:/home/admin/ns2/ns-allinone-2.27/tcl8.4.5/unix:/home/admin/ns2/ns-allinone-2.27/tk8.4.5/unix
export LD_LIBRARY_PATH=/home/admin/ns2/ns-allinone-2.27/otcl-1.8:home/admin/ns2/ns-allinone-2.27/lib
export TCL_LIBRARY=/home/admin/ns2/ns-allinone-2.27/tcl8.4.5/library