Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Installing NS 2 by Teerawat Issariyakul http://www.ns2ultimate.com March 2010 (last updated September 2010) http://www.ns2...
Outline <ul><li>Known Issues as of March 2010 </li></ul><ul><li>Working Solution </li></ul><ul><li>Step-by-Step Installati...
Known Issues as of March 2010 <ul><li>Window platform: </li></ul><ul><li>version XP and 7 </li></ul><ul><li>NS2 version: 2...
Working Solution <ul><li>Window platform: </li></ul><ul><li>version XP and 7 </li></ul><ul><li>NS2 version: 2.35 </li></ul...
Step-by-Step Installation <ul><li>Ubuntu : please see my previous post </li></ul><ul><li>http :// www.ns2ultimate.com/post...
Installing Cygwin 1.7.1 1. Go to cygwin.com click here to get file “ setup.exe” 2. Run the file “setup.exe” http://www.ns2...
Installing Cygwin 1.7.1 2. Run the file “setup.exe” Keep hitting next and  provide directory information http://www.ns2ult...
Installing Cygwin 1.7.1 3. When you hit this page, choose the required (e.g.,  gcc4 ) and optional packages Search the pac...
Installing NS2 <ul><li>4. Open Cygwin </li></ul><ul><li>5. Download and extract ns2allinone2.35-RC3 package </li></ul><ul>...
Installing NS2 8. When done, call »cd ns-allinone-2.35-RC3 »./install 9. When the installation completes adds the followin...
Verifying the Installation <ul><li>1. Test whether t he NS2 directory should be added to the  $PATH  variable </li></ul><u...
Verifying the Installation 2. Now type  ns An NS command prompt  %  should appear on the screen, and you are done! http://...
Troubleshooting  <ul><li>If it’s not working, you may create a link to ns2 executable  </li></ul><ul><li>>>cd /usr/local/b...
Acknowledgement <ul><li>I would like to acknowledge </li></ul><ul><li>tumblr.com, slideshare.net </li></ul><ul><li>Lupe Kr...
For more information about NS 2 Please see this book from Springer T. Issaraiyakul and E. Hossain, “Introduction to Networ...
Upcoming SlideShare
Loading in …5
×

Ns-2.35 Installation

51,314 views

Published on

Published in: Education, Technology, Business

Ns-2.35 Installation

  1. 1. Installing NS 2 by Teerawat Issariyakul http://www.ns2ultimate.com March 2010 (last updated September 2010) http://www.ns2ultimate.com
  2. 2. Outline <ul><li>Known Issues as of March 2010 </li></ul><ul><li>Working Solution </li></ul><ul><li>Step-by-Step Installation </li></ul><ul><ul><li>Ubuntu </li></ul></ul><ul><ul><li>Windows </li></ul></ul><ul><li>Acknowledgement </li></ul>http://www.ns2ultimate.com
  3. 3. Known Issues as of March 2010 <ul><li>Window platform: </li></ul><ul><li>version XP and 7 </li></ul><ul><li>NS2 version: 2.33 and 2.34 </li></ul><ul><li>Cygwin 1.5.25 and 1.7.1 </li></ul><ul><li>gcc version 3.4.4-999 </li></ul><ul><li>Ubuntu platform: </li></ul><ul><li>version 9.10 </li></ul><ul><li>gcc version 4.4.1 </li></ul><ul><li>NS2 DOES NOT work under the following environment. </li></ul><ul><li>Possible cause: gcc version! </li></ul>http://www.ns2ultimate.com
  4. 4. Working Solution <ul><li>Window platform: </li></ul><ul><li>version XP and 7 </li></ul><ul><li>NS2 version: 2.35 </li></ul><ul><li>Cygwin1.7.1 </li></ul><ul><li>gcc version 4.3.4 </li></ul><ul><li>Ubuntu platform: </li></ul><ul><li>version 8.04 </li></ul><ul><li>NS2 version 2.33 and 2.34 </li></ul><ul><li>gcc version 4.2.4 </li></ul><ul><li>These two solutions are tested. They DO WORK !! </li></ul><ul><li>Note: ns-2.35 checks for gcc4 and gcc4-g++ rather than gcc and gcc-g++ </li></ul>http://www.ns2ultimate.com
  5. 5. Step-by-Step Installation <ul><li>Ubuntu : please see my previous post </li></ul><ul><li>http :// www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps </li></ul><ul><li>Windows  Use cygwin </li></ul><ul><ul><li>Required package : </li></ul></ul><ul><ul><li>gcc4, gcc4-g++, gawk, tar, gzip, make, patch, perl, w32api </li></ul></ul><ul><ul><li>Graphic package : </li></ul></ul><ul><ul><li>xorg-server, xinit, libX11-devel, libXmu-devel </li></ul></ul><ul><ul><li>Graphic package if required if you would like to run graphical things like nam or Xgraph. I find them unnecessary. </li></ul></ul>http://www.ns2ultimate.com
  6. 6. Installing Cygwin 1.7.1 1. Go to cygwin.com click here to get file “ setup.exe” 2. Run the file “setup.exe” http://www.ns2ultimate.com
  7. 7. Installing Cygwin 1.7.1 2. Run the file “setup.exe” Keep hitting next and provide directory information http://www.ns2ultimate.com
  8. 8. Installing Cygwin 1.7.1 3. When you hit this page, choose the required (e.g., gcc4 ) and optional packages Search the package name here Expand package category by clicking ‘+’ Click here to install all the optional package When you are done, hit ‘next’ http://www.ns2ultimate.com
  9. 9. Installing NS2 <ul><li>4. Open Cygwin </li></ul><ul><li>5. Download and extract ns2allinone2.35-RC3 package </li></ul><ul><li>6. Go to your home directory by typing </li></ul><ul><li>» cd </li></ul><ul><li>Here, you can type pwd to see the full path of your home directory. </li></ul><ul><li>7. Extract the package by calling </li></ul><ul><li>»tar -xvf ns-allinone-2.35-RC3.tar.gz </li></ul>http://www.ns2ultimate.com
  10. 10. Installing NS2 8. When done, call »cd ns-allinone-2.35-RC3 »./install 9. When the installation completes adds the followings into the file “.bashrc” located in your home directory NSHOME=~/ns-allinone-2.35-RC3 OTCL_LIB=${NSHOME}/otcl-1.14 NS2_LIB=${NSHOME}/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB export TCL_LIBRARY=${NSHOME}/tcl8.5.8/library PATH=$PATH:${NSHOME}/ns-2.35:${NSHOME}/nam-1.15 Note: Look carefully at the directory you might have to change something http://www.ns2ultimate.com
  11. 11. Verifying the Installation <ul><li>1. Test whether t he NS2 directory should be added to the $PATH variable </li></ul><ul><li>Test by executing </li></ul><ul><li>>> echo $ PATH </li></ul><ul><li>Your NS2 path should be shown above. </li></ul><ul><li>You can now execute NS2 from any directory </li></ul>http://www.ns2ultimate.com
  12. 12. Verifying the Installation 2. Now type ns An NS command prompt % should appear on the screen, and you are done! http://www.ns2ultimate.com
  13. 13. Troubleshooting <ul><li>If it’s not working, you may create a link to ns2 executable </li></ul><ul><li>>>cd /usr/local/bin </li></ul><ul><li>>>ln –s /home/T_Bear/ns-allinone-2.35-RC3/ns-2.35/ns.exe </li></ul><ul><li>And, now you should be able to run ns2 </li></ul>http://www.ns2ultimate.com
  14. 14. Acknowledgement <ul><li>I would like to acknowledge </li></ul><ul><li>tumblr.com, slideshare.net </li></ul><ul><li>Lupe Krops for useful discussion. </li></ul><ul><li>Aslinda Hassan for confirming the problem with gcc version. </li></ul><ul><li>Tom Handerson and Sidney Doria for his suggestion on ns-2.35 </li></ul><ul><li>Chaiyut Jandang for his blog ( http://jacaranda-jandaeng.blogspot.com/2009/12/ns2-ns-234-ubuntu-904.html ) in Thai language </li></ul><ul><li>Sucha Supittayapornpong for introducing Slideshare.com (http://suchaxplore.blogspot.com/). </li></ul>http://www.ns2ultimate.com
  15. 15. For more information about NS 2 Please see this book from Springer T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2009 http://www.ns2ultimate.com

×