we can install NS2 inside windows by using Cygwin
Steps are
1. download cygwin
2.install cygwin with the packages needed to install ns2
select development packages and x11
3.installation needed net connection
4.this will create a Linux environment inside u r windows
5.then the copy ns2 tar files inside cygwin
6.unpack the compressed files using tar -xvf filename.tar.gz command
7.using cd folder name command go inside ns2 folder
8. type ./install
9.then follow the steps given below,,,,,
NS2 INSTALLATION GUIDE
1. Download the file ns-allinone-2.29.tar.gz from sourceforge at https://sourceforge.net/projects/tel-wimax-ns2/files/ns2-allinone/ns-allinone-2.29.tar.gz and save it into the folder C:\cygwin\opt.
2. Open Cygwin Bash Shell by executing “cygwin.bat” file in your C:\cygwin folder.
3. Type “cd c:/cygwin/opt”
Figure 2: Unzipping NS-2
4. Type “tar -zvxf ns-allinone-2.29.tar.gz” to extract the ns-2
5. After the files are extracted type cd ns-allinone-2.29 (or cd ns* for shortcut) and then type “./install” as Note the dot (“.”) in front of the slash.
6. NS-2 installation will start
7. If you are warned about missing files, just type “y” and go ahead with the installation.
8. After installation is complete you will see the screen
9. If you have the “.bashrc” file in your $HOME folder located at C:\cygwin\home\your_name (e.g. “C:\cygwin\home\developer”)
i) Goto C:\cygwin\home\your_name, find the “.bashrc” file and modify it. By adding the following text
# Functions# ######### export NS_HOME=/opt/ns-allinone-2.29 export PATH=$NS_HOME/bin:$NS_HOME/tcl8.4.11/unix:$NS_HOME/tk8.4.11/unix:$PATH export LD_LIBRARY_PATH=$NS_HOME/otcl-1.11:$NS_HOME/lib:\ $NS_HOME/otcl-1.8:$NS_HOME/lib:$LD_LIBRARY_PATH export TCL_LIBRARY=$NS_HOME/tcl8.4.11/library
ii) Restart cygwin.
Note: Please use a LINUX based test editor or software like UltraEdit for text editing and choose line terminator as UNIX Terminators-LF while saving.
10. If you don’t have the file in your $HOME folder, copy .bashrc file from C:\cygwin\etc\defaults\etc\skel to C:\cygwin\home\your_name and modify and save it as in step 11.
11. Open the file “profile” from C:\cygwin\etc using a text editor and add the line
. "$HOME/.bashrc"
Note that there is a space between the first dot and "$HOME/.bashrc".
12. Using the Cygwin bash shell prompt cd into /opt/ns-allinone-2.29
13. Rename the folder ns2.29 into something else. It is used for backup purposes only. We typically rename it to “ns2.29_old”. For example, type:
mv ns2.29 ns2.29_old
14. Using SVN (Subversion) check out the latest stable code from sourceforge. To do so, execute the following from within Cygwin, in folder /opt/ns2-allinone-2.29
svn co https://tel-wimax-ns2.svn.sourceforge.net/svnroot/tel-wimax-ns2/trunk ns2.29
15. When the SVN checkout completed, cd to /opt/ns-allinone-2.29/ns2.29
16. Type “./configure;make clean;make” at the prompt and hit enter.
17. The compilation process will begin. This is a lengthy process. After NS-2 has been successfully compiled
18. After successful compilation, try running one of our scripts for verification. Three samples are provided in the “sample” folder inside the checked out ns-2.29 directory structure. The way to create and execute NS-2 scripts is documented in the accompanying tutorials. It is better to change the current working folder to the folder containing the scripts for file management purposes.
Subscribe to:
Post Comments (Atom)
Getting Started with High-Speed PCB Design, Beginners Must Understand These 10 Concepts
Getting S tarted with H igh- S peed PCB D esign, B eginners M ust U nderstand T hese 10 C oncepts To learn high-speed PCB de...

-
"GOOGLE" i am using lots of google`s applications, till now no other web company gave me like this,,, HAND FULL of apps for u ...
No comments:
Post a Comment