#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to install ns2 in Cygwin How to install ns2 in windows?
Step 1
  • Open Cygwin setup and click “next” button


Step 2
  • Choose “Install from Local Directory” and click “next” button


Step 3
  • Browse the Root Directory and click “next” button


Step 4
  • Verify the Package Directory and click “next” button



Step 5
  • Change the Default Mode to install Mode and click “next” button


Step 6
  • After progress is completed, click “next” button



Step 7
  • Click Finish


Step 8
  • Now, Cygwin Icon is created on desktop.
  • Click ok


Step 9
  • Following steps guide to install ns2 in windows after cygwin (linux) installation.
  • Open Cygwin Terminal and type startxwin.bat and press “Enter”
  • Now, home will be created on the location: C:\Cygwin……


Step 10
  • Overwrite the Bahrc file into Administrator (system name) Folder
  • 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



Step 11
  • Paste the ns allinone-2.30 Folder into home Folder


Step 12
  • Open Cygwin Terminal and type startxwin.bat and Enter


Step 13
  • X window will be opened and go to location of ns2.30, type. /install



Step 14
  • Successful Installation of ns2 can be verified using the following command.
  • Type ns and Enter. If the % symbol shows, ns2 have been installed successfully.