0% found this document useful (0 votes)
19 views

Save The Document and Type The Following Command in The Terminal For The Document To Take Effect

This document contains instructions for setting environment variables to configure the PATH and libraries for the ns-allinone network simulator package. It defines variables for LD_LIBRARY_PATH, TCL_LIBRARY, and PATH, setting them to include directories for libraries and binaries from the ns-allinone installation. Running source ~/.bashrc applies these changes, and typing "ns" then "exit" launches and quits the ns simulator shell.

Uploaded by

Kiran Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Save The Document and Type The Following Command in The Terminal For The Document To Take Effect

This document contains instructions for setting environment variables to configure the PATH and libraries for the ns-allinone network simulator package. It defines variables for LD_LIBRARY_PATH, TCL_LIBRARY, and PATH, setting them to include directories for libraries and binaries from the ns-allinone installation. Running source ~/.bashrc applies these changes, and typing "ns" then "exit" launches and quits the ns simulator shell.

Uploaded by

Kiran Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

# LD_LIBRARY_PATH

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 "$"

You might also like