Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Install • Source ~/.bashrc • Quit Terminal and after reopening terminal type ns • Your NS-2 is ready to use Install NS-2 on ubuntu 6

Slide 7

Slide 7 text

End • Any problems? • Contact me: [email protected] Install NS-2 on ubuntu 7