SlideShare a Scribd company logo
1 of 15
Installing NS 2
by Teerawat Issariyakul
http://www.ns2ultimate.com



March 2010
(last updated November 2011)




                               1
Outline
   Known Issues as of November 2010
   Working Solution
   Step-by-Step Installation
    ◦ Ubuntu
    ◦ Windows
   Acknowledgement




                           http://www.ns2ultimate.com   2
Known Issues as of November
2010
1. NS2 DOES NOT work under the
following environment.

Window platform:            Ubuntu platform:
o   version XP and 7        o version 9.10
o   NS2 version: 2.33 and   o gcc version 4.4.1
    2.34
o   Cygwin 1.5.25 and
    1.7.1

2. NS2 require Cygwin Package
libmpfr4, which is not installed by
                                  http://www.ns2ultimate.com   3
Working Solution
   These two solutions are tested. They
    DO WORK!!
   Windows Platform
   Cygwin 1.7.9 with additional
    packages:
    ◦ Basic packages: gcc4, gcc4-g++, gawk,
      tar, gzip, make, patch, perl,
      w32api, libmpfr4
    ◦ Graphic packages: X11 (for running
      things like nam or Xgraph)
    ◦ Read [ here ] for more info. about
      required packages
                               http://www.ns2ultimate.com   4
Installing Cygwin 1.7.9
1. Go to cygwin.com


                                  click here
                                  to get file
                                 “setup.exe”


                           2. Run the
                           file




                      http://www.ns2ultimate.com   5
Installing Cygwin 1.7.9
2. Run the file “setup.exe”




                                        Keep hitting
                                          next and
                                           provide
                                          directory
                                        information




                             http://www.ns2ultimate.com   6
Installing Cygwin 1.7.9
3. When you hit this page, choose the
required (e.g., gcc4) and optional
packages
    Search the
      package
     name here


     Expand
     package                        Click here
   category by                     to install all
   clicking ‘+’                    the optional
                                     package


When you are done, hit
       ‘next’

                           http://www.ns2ultimate.com   7
Installing NS2
4. Download and extract ns-2.35 package from
[ here ]. Put the downloaded file in your HOME
directory (e.g., c:cygwinhomeyourname).

5. Run Cygwin

6. Go to your home directory by typing
» cd
Here, you can type pwd to see the full path of
your home directory.

7. Extract the package by calling
»tar -xvf ns-allinone-2.35.tar.gz

                                 http://www.ns2ultimate.com   8
Installing NS2
8. When done, execute
»cd ns-allinone-2.35
»./install

9. When the installation completes adds the followings into
the file “.bashrc” located in your home directory
NSHOME=~/ns-allinone-2.35
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   9
Verifying the Installation
1. Test whether the NS2 directory should be
added to the $PATH variable
 Test by executing

   >> echo $PATH




     Your NS2 path should be shown above.
   You can now execute NS2 from any directory
                                http://www.ns2ultimate.com   10
Verifying the Installation
2. Now type   ns




An NS command prompt % should
appear on the screen, and you are done!

                           http://www.ns2ultimate.com   11
Troubleshooting
 If it’s not working,
1. Try to run ns2 from the installation
    directory by typing “./ns”




   If the % appears, your NS2 is installed
    correctly.

                               http://www.ns2ultimate.com   12
Troubleshooting
   If it’s not working, you may create a
    link to ns2 executable
>>cd /usr/local/bin
>>ln –s /home/T_Bear/ns-allinone-2.35/ns-2.35/
ns.exe


   And, now you
    should be able
    to run ns2



                               http://www.ns2ultimate.com   13
Acknowledgement
   I would like to acknowledge
   tumblr.com, slideshare.net
   Lupe Krops for useful discussion.
   Aslinda Hassan for confirming the problem with gcc
    version.
   Tom Handerson and Sidney Doria for his suggestion on
    ns-2.35
   Chaiyut Jandang for his blog (http://jacaranda-
    jandaeng.blogspot.com/2009/12/ns2-ns-234-
    ubuntu-904.html) in Thai language
   Sucha Supittayapornpong for introducing Slideshare.com

                                        http://www.ns2ultimate.com   14
For more information about
NS 2




Please see this book from Springer
T. Issaraiyakul and E. Hossain, “Introduction
to Network Simulator NS2”, Springer 2009




                                                15

More Related Content

What's hot

How to test drive development using Linux
How to test drive development using LinuxHow to test drive development using Linux
How to test drive development using LinuxCraig Dickson
 
Restoring Your Computer From A Backup
Restoring Your Computer From A BackupRestoring Your Computer From A Backup
Restoring Your Computer From A Backupstevewah4u
 
Ubuntu installation
Ubuntu installationUbuntu installation
Ubuntu installationmayur bora
 
Accessing windows files from linux
Accessing windows files from linuxAccessing windows files from linux
Accessing windows files from linuxVivek K. Singh
 
Linux and SUSE
Linux and SUSELinux and SUSE
Linux and SUSELiang Yan
 
Presentation2
Presentation2Presentation2
Presentation2Wowdog55
 
Fvcp Presentation 0909 (Ubuntu)
Fvcp Presentation 0909 (Ubuntu)Fvcp Presentation 0909 (Ubuntu)
Fvcp Presentation 0909 (Ubuntu)Straight North
 
Burning ISO image with InfraRecorder
Burning ISO image with InfraRecorderBurning ISO image with InfraRecorder
Burning ISO image with InfraRecorderSt Louis MUG
 
Exploiting Llinux Environment
Exploiting Llinux EnvironmentExploiting Llinux Environment
Exploiting Llinux EnvironmentEnrico Scapin
 
Running Mageia 4, LiveDVD-GNOME
Running  Mageia 4, LiveDVD-GNOMERunning  Mageia 4, LiveDVD-GNOME
Running Mageia 4, LiveDVD-GNOMESt Louis MUG
 
Linux(Ubuntu 9.0) Installation By VMware
Linux(Ubuntu 9.0) Installation By VMwareLinux(Ubuntu 9.0) Installation By VMware
Linux(Ubuntu 9.0) Installation By VMwareSumit kumar
 
Converting parallels or vm ware to virtual box
Converting parallels or vm ware to virtual boxConverting parallels or vm ware to virtual box
Converting parallels or vm ware to virtual boxCarlos Eduardo
 
Os digital assignment 2
Os digital assignment 2Os digital assignment 2
Os digital assignment 2ShahinMakubhai
 
Secure iPod Backup
Secure iPod BackupSecure iPod Backup
Secure iPod BackupDom Barnes
 

What's hot (20)

Top 10 Tips for Beginning Linux Users
Top 10 Tips for Beginning Linux UsersTop 10 Tips for Beginning Linux Users
Top 10 Tips for Beginning Linux Users
 
How to test drive development using Linux
How to test drive development using LinuxHow to test drive development using Linux
How to test drive development using Linux
 
Restoring Your Computer From A Backup
Restoring Your Computer From A BackupRestoring Your Computer From A Backup
Restoring Your Computer From A Backup
 
Ubuntu installation
Ubuntu installationUbuntu installation
Ubuntu installation
 
Accessing windows files from linux
Accessing windows files from linuxAccessing windows files from linux
Accessing windows files from linux
 
Set up docker
Set up dockerSet up docker
Set up docker
 
Linux and SUSE
Linux and SUSELinux and SUSE
Linux and SUSE
 
Presentation2
Presentation2Presentation2
Presentation2
 
Slider2
Slider2Slider2
Slider2
 
Fvcp Presentation 0909 (Ubuntu)
Fvcp Presentation 0909 (Ubuntu)Fvcp Presentation 0909 (Ubuntu)
Fvcp Presentation 0909 (Ubuntu)
 
Burning ISO image with InfraRecorder
Burning ISO image with InfraRecorderBurning ISO image with InfraRecorder
Burning ISO image with InfraRecorder
 
Basics Ubuntu commands
Basics Ubuntu commandsBasics Ubuntu commands
Basics Ubuntu commands
 
Exploiting Llinux Environment
Exploiting Llinux EnvironmentExploiting Llinux Environment
Exploiting Llinux Environment
 
linux_distro
linux_distrolinux_distro
linux_distro
 
Running Mageia 4, LiveDVD-GNOME
Running  Mageia 4, LiveDVD-GNOMERunning  Mageia 4, LiveDVD-GNOME
Running Mageia 4, LiveDVD-GNOME
 
Raspberry home server
Raspberry home serverRaspberry home server
Raspberry home server
 
Linux(Ubuntu 9.0) Installation By VMware
Linux(Ubuntu 9.0) Installation By VMwareLinux(Ubuntu 9.0) Installation By VMware
Linux(Ubuntu 9.0) Installation By VMware
 
Converting parallels or vm ware to virtual box
Converting parallels or vm ware to virtual boxConverting parallels or vm ware to virtual box
Converting parallels or vm ware to virtual box
 
Os digital assignment 2
Os digital assignment 2Os digital assignment 2
Os digital assignment 2
 
Secure iPod Backup
Secure iPod BackupSecure iPod Backup
Secure iPod Backup
 

Similar to 20111126 ns2installation-111125123338-phpapp02

Direction of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemDirection of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemyahyaoui hamdi
 
rgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordrgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordnaaaaz
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNagios
 
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.Marc Trimble
 
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
Apache Kafka Setup with Zookeeper - SkillAnything.pdfApache Kafka Setup with Zookeeper - SkillAnything.pdf
Apache Kafka Setup with Zookeeper - SkillAnything.pdfSkillAnything
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxFleep Tuque
 
Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04Rajendra Singh
 
Cygwin+and+open ssl+install+guide
Cygwin+and+open ssl+install+guideCygwin+and+open ssl+install+guide
Cygwin+and+open ssl+install+guideganaaturuu
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01decenttr
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14kmsa
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Project 2 how to install and compile os161
Project 2 how to install and compile os161Project 2 how to install and compile os161
Project 2 how to install and compile os161Xiao Qin
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012Chukwuma Onyeije, MD, FACOG
 

Similar to 20111126 ns2installation-111125123338-phpapp02 (20)

Ns-2.35 Installation
Ns-2.35 InstallationNs-2.35 Installation
Ns-2.35 Installation
 
20111107 ns2-required cygwinpkg
20111107 ns2-required cygwinpkg20111107 ns2-required cygwinpkg
20111107 ns2-required cygwinpkg
 
Direction of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemDirection of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows system
 
rgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordrgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab record
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
 
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
 
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
Apache Kafka Setup with Zookeeper - SkillAnything.pdfApache Kafka Setup with Zookeeper - SkillAnything.pdf
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
 
Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04
 
Linux install
Linux installLinux install
Linux install
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
Cygwin+and+open ssl+install+guide
Cygwin+and+open ssl+install+guideCygwin+and+open ssl+install+guide
Cygwin+and+open ssl+install+guide
 
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01Howtoinstallarchlinuxtousb final-120610172253-phpapp01
Howtoinstallarchlinuxtousb final-120610172253-phpapp01
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Project 2 how to install and compile os161
Project 2 how to install and compile os161Project 2 how to install and compile os161
Project 2 how to install and compile os161
 
How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012How to Install ArchLinux to a USB Flashdrive in 2012
How to Install ArchLinux to a USB Flashdrive in 2012
 

Recently uploaded

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Recently uploaded (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

20111126 ns2installation-111125123338-phpapp02

  • 1. Installing NS 2 by Teerawat Issariyakul http://www.ns2ultimate.com March 2010 (last updated November 2011) 1
  • 2. Outline  Known Issues as of November 2010  Working Solution  Step-by-Step Installation ◦ Ubuntu ◦ Windows  Acknowledgement http://www.ns2ultimate.com 2
  • 3. Known Issues as of November 2010 1. NS2 DOES NOT work under the following environment. Window platform: Ubuntu platform: o version XP and 7 o version 9.10 o NS2 version: 2.33 and o gcc version 4.4.1 2.34 o Cygwin 1.5.25 and 1.7.1 2. NS2 require Cygwin Package libmpfr4, which is not installed by http://www.ns2ultimate.com 3
  • 4. Working Solution  These two solutions are tested. They DO WORK!!  Windows Platform  Cygwin 1.7.9 with additional packages: ◦ Basic packages: gcc4, gcc4-g++, gawk, tar, gzip, make, patch, perl, w32api, libmpfr4 ◦ Graphic packages: X11 (for running things like nam or Xgraph) ◦ Read [ here ] for more info. about required packages http://www.ns2ultimate.com 4
  • 5. Installing Cygwin 1.7.9 1. Go to cygwin.com click here to get file “setup.exe” 2. Run the file http://www.ns2ultimate.com 5
  • 6. Installing Cygwin 1.7.9 2. Run the file “setup.exe” Keep hitting next and provide directory information http://www.ns2ultimate.com 6
  • 7. Installing Cygwin 1.7.9 3. When you hit this page, choose the required (e.g., gcc4) and optional packages Search the package name here Expand package Click here category by to install all clicking ‘+’ the optional package When you are done, hit ‘next’ http://www.ns2ultimate.com 7
  • 8. Installing NS2 4. Download and extract ns-2.35 package from [ here ]. Put the downloaded file in your HOME directory (e.g., c:cygwinhomeyourname). 5. Run Cygwin 6. Go to your home directory by typing » cd Here, you can type pwd to see the full path of your home directory. 7. Extract the package by calling »tar -xvf ns-allinone-2.35.tar.gz http://www.ns2ultimate.com 8
  • 9. Installing NS2 8. When done, execute »cd ns-allinone-2.35 »./install 9. When the installation completes adds the followings into the file “.bashrc” located in your home directory NSHOME=~/ns-allinone-2.35 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 9
  • 10. Verifying the Installation 1. Test whether the NS2 directory should be added to the $PATH variable  Test by executing >> echo $PATH Your NS2 path should be shown above.  You can now execute NS2 from any directory http://www.ns2ultimate.com 10
  • 11. Verifying the Installation 2. Now type ns An NS command prompt % should appear on the screen, and you are done! http://www.ns2ultimate.com 11
  • 12. Troubleshooting  If it’s not working, 1. Try to run ns2 from the installation directory by typing “./ns”  If the % appears, your NS2 is installed correctly. http://www.ns2ultimate.com 12
  • 13. Troubleshooting  If it’s not working, you may create a link to ns2 executable >>cd /usr/local/bin >>ln –s /home/T_Bear/ns-allinone-2.35/ns-2.35/ ns.exe  And, now you should be able to run ns2 http://www.ns2ultimate.com 13
  • 14. Acknowledgement  I would like to acknowledge  tumblr.com, slideshare.net  Lupe Krops for useful discussion.  Aslinda Hassan for confirming the problem with gcc version.  Tom Handerson and Sidney Doria for his suggestion on ns-2.35  Chaiyut Jandang for his blog (http://jacaranda- jandaeng.blogspot.com/2009/12/ns2-ns-234- ubuntu-904.html) in Thai language  Sucha Supittayapornpong for introducing Slideshare.com http://www.ns2ultimate.com 14
  • 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 15

Editor's Notes

  1. \n
  2. Tip: Add your own speaker notes here.\n
  3. Tip: Add your own speaker notes here.\n
  4. Tip: Add your own speaker notes here.\n
  5. Tip: Add your own speaker notes here.\n
  6. Tip: Add your own speaker notes here.\n
  7. Tip: Add your own speaker notes here.\n
  8. Tip: Add your own speaker notes here.\n
  9. Tip: Add your own speaker notes here.\n
  10. Tip: Add your own speaker notes here.\n
  11. Tip: Add your own speaker notes here.\n
  12. Tip: Add your own speaker notes here.\n
  13. Tip: Add your own speaker notes here.\n
  14. \n
  15. \n