Installation of ns2 in Windows

  • Open Cygwin setup and click “next” button
Installation of ns2 in Windows
  • Choose “Install from Local Directory” and click “next” button
Installation of ns2 in Windows
  • Browse the Root Directory and click “next” button
Installation of ns2 in Windows
  • Verify the Package Directory and click “next” button
Installation of ns2 in Windows
Installation of ns2 in Windows
  • Change the Default Mode to install Mode and click “next” button
Installation of ns2 in Windows
  • After progress is completed, click “next” button
Installation of ns2 in Windows
NS2 installation
  • Click Finish
Installation of ns2 in Windows
  • Now, Cygwin Icon is created on desktop.
  • Click ok
Installation of ns2 in Windows
  • Following steps guide to install ns2 in windows after cygwin (linux) installation.
  • Open Cygwin Terminal and type startxwin.bat and press “Enter”
Installation of ns2 in Windows
  • Now, home will be created on the location: C:\Cygwin……
  • Overwrite the Bahrc file into Administrator (system name) Folder
Installation of ns2 in Windows
  • Overwriting bashrc file should contain following lines

export NS_HOME=/home/ns-allinone-2.30
export
PATH=$NS_HOME/tcl8.4.13/unix:$NS_HOME/tk8.4.13/unix:$NS_HOME/bin:$PATH
export
LD_LIBRARY_PATH=$NS_HOME/tcl8.4.13/unix:$NS_HOME/tk8.4.13/unix:$NS_HOME/otcl-1.12:$NS_HOME/lib:$LD_LIBRARY_PATH
export TCL_LIBRARY=$NS_HOME/tcl8.4.13/library

  • Paste the ns allinone-2.30 Folder into home Folder
Installation of ns2 in Windows
  • Open Cygwin Terminal and type startxwin.bat and Enter
Installation of ns2 in Windows
  • X window will be opened and go to location of ns2.30, type. /install
Installation of ns2 in Windows
Installation of ns2 in Windows
  • Successful Installation of ns2 can be verified using the following command.
  • Type ns and Enter. If the % symbol shows, ns2 have been installed successfully.
Installation of ns2 in Windows