Installing NS 2.35 in Ubuntu 12.04

Ubuntu 12.04 Precise Pandolin has been launched and as usual comes with good number of recent software and nice updates. Installation of ns2 over this Ubuntu 12.04 is as usual similar to Ubuntu 11.10, so the same steps hold good for 12.04 also.

The users can use Ubuntu 12.04 for quite some more time as it a LTS (Long Term Support) OS.  Here are the simple steps to install NS2.35 in Ubuntu 12.04

Step 1: Download NS-2.35 from http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download

Step 2: Copy the ns-allinone-2.35.tar.gz to the home folder (Example in my case /home/pradeep)

Step 3: There are some softwares need to be downloaded for running NS2, download those softwares and then untar or extract it and give the following commands one by one

sudo apt-get update        (This is to update the Ubuntu repository)

sudo apt-get install build-essential autoconf automake libxmu-dev     (This is to download the GCC compilers, TCL, Tk ,etc)

tar zxvf ns-allinone-2.35.tar.gz    (This is to extract the tar.gz file into a folder)

cd ns-allinone-2.35

./install    (This is to install)

Step 4: Once the installation is succeeded, you will shown to set the path information. set the PATH information in the following files /home/pradeep/.bashrc (You cannot see this file through GUI because it is a hidden file, so open the file using gedit or vi)

gedit /home/pradeep/.bashrc

and then edit the PATH and LD_LIBRARY_PATH

That’s it!!!!

Comments

Popular Posts