Path Setting in NS2

  • Set PATH environment in ns2 as follows
  • Modify .bahrc

Path Setting in NS2
  • Add this line in bashrc file which located at C: /Cywin/home/Administrator/……
  • 1.export NS_HOME=/home/ns-allinone-2.302.exportPATH=$NS_HOME/tcl8.4.13/unix:$NS_HOME/tk8.4.13/unix:$NS_HOME/bin:$PATH3.exportLD_LIBRARY_PATH=$NS_HOME/tcl8.4.13/unix:$NS_HOME/tk8.4.13/unix:$NS_HOME/otcl-1.12:$NS_HOME/lib:$LD_LIBRARY_PATH4.exportTCL_LIBRARY=$NS_HOME/tcl8.4.13/library

  • Edit the lines as shown in below bashrc file
Path Setting in NS2