Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Install NS-2 on Ubuntu

Install NS-2 on Ubuntu

Install NS-2 on Ubuntu 10.10

A68aafa47e43f3779d6af2989c9d003c?s=128

Ali MasudianPour

November 23, 2012
Tweet

More Decks by Ali MasudianPour

Other Decks in How-to & DIY

Transcript

  1. Install NS-2 on Ubuntu 10.10 Ubuntu 11.04/Ubuntu 11.10/Ubuntu 12.04/Ubuntu 12.10

    Ali MasudianPour 2012, August Install NS-2 on ubuntu 1
  2. Download NS-2 1. Download NS-2 from the following link: •

    http://bit.ly/downloadns • Download ns-allinone-2.34 Install NS-2 on ubuntu 2
  3. Unzip • Place the ns-allinone-2.34 .tar.gz in your home folder

    and extract the contents into a folder with the same name. • Open the folder • Cd home/masud/ns-allinone-2.34 • Masud is my username. Enter your usernameinstead of masud. • Sudo apt-get install build-essential autoconf automake libxmu- dev gcc-4.3 Install NS-2 on ubuntu 3
  4. Downgrading GCC • To continue the installation we have to

    downgrade the GCC to the version of: 4.3 • Go to your ns-2 folder • Sudo gedit ns-allinone-2.34/otcl-1.13/Makefile.in • Apply these changes to the makefile.in • Change CC= @CC@ to CC=gcc-4.3 Install NS-2 on ubuntu 4
  5. Install • Sudo su • ./install • Gedit /home/masud/.bashrc •

    Append the following lines to the bashrc file: # LD_LIBRARY_PATH OTCL_LIB=/home/micman/ns-allinone-2.34/otcl-1.13 NS2_LIB=/home/micman/ns-allinone-2.34/lib X11_LIB=/usr/X11R6/lib USR_LOCAL_LIB=/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB # TCL_LIBRARY TCL_LIB=/home/micman/ns-allinone-2.34/tcl8.4.18/library USR_LIB=/usr/lib export TCL_LIBRARY=$TCL_LIB:$USR_LIB # PATH XGRAPH=/home/micman/ns-allinone-2.34/bin:/home/micman/ns-allinone- 2.34/tcl8.4.18/unix:/home/micman/ns-allinone-2.34/tk8.4.18/unix #the above two lines beginning from xgraph and ending with unix should come on the same line NS=/home/micman/ns-allinone-2.34/ns-2.34/ NAM=/home/micman/ns-allinone-2.34/nam-1.14/ PATH=$PATH:$XGRAPH:$NS:$NAM Install NS-2 on ubuntu 5
  6. Install • Source ~/.bashrc • Quit Terminal and after reopening

    terminal type ns • Your NS-2 is ready to use Install NS-2 on ubuntu 6
  7. End • Any problems? • Contact me: masudianpour@aol.com Install NS-2

    on ubuntu 7