Save The Document and Type The Following Command in The Terminal For The Document To Take Effect
Save The Document and Type The Following Command in The Terminal For The Document To Take Effect
OTCL_LIB=/X/Y/ns-allinone-2.34/otcl-1.14
NS2_LIB=/X/Y/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LI
B:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/X/Y/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/X/Y/ns-allinone-2.34/bin:/X/Y/ns-allinone-2.34/tcl8.4.18/unix:/X/Y/ns-allinone-
2.34/tk8.4.18/unix
NS=/X/Y/ns-allinone-2.34/ns-2.34/
NAM=/X/Y/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM
save the document and type the following command in the terminal for the
document to take effect.
source ~/.bashrc
10)If you type
$ ns
Then "%" will appear on the screen.Now type "exit" to quit this mode and revert to "$"