ff

Recent Posts

Sunday, September 29, 2013

How to Install NS2.35 on Ubuntu 12.04



Lets Install NS2.35 on Ubuntu 12.4

I assume you have Installed the Ubuntu 12.4 . If not you can install it directly or by using Vmware or Oracle Virtual box.

First step is to download the ns2 installation bundle.


then I extract it same palce where it downloaded. For me its “Downloads” directory.
Do not worry about terminal coding... open the folder and Click on "Extract" button  as simply sown in the following figure.


Click on Extract Button again..



Now you can see... there is a directory called "ns-allinone-2.35" in the Downloads folder.

now open the terminal and change the current directory to the "ns-allinone-2.35" directory by using "cd" command




then execute the command 
./install

then wait until it ends... sometimes it shows errors but don't worry about them.. just ignore...

now you should set the environment variable and paths
to do that .. follow the following steps
run the command    gedit ~/.bashrc
it will open new window with text editor.. now we are going to add some values to it.




dd the following text inside the textviewer and click on "save" button.





                                  now exit from the text editor and type "ns" on the terminal
once you did it.. if you see percentage symbol "%"  on the screen , that means your ns2 installation is successful.
if instead of if you see some errors , just run the following command and then it will download some packages from the Internet and install it.
sudo apt-get install ns2 nam xgraph
then type your password to confirm yourself 

once the download complete.. type "ns" command and see whether its succees
here I go...







2 comments :

i followed all the procedures but finally i got the following error:

salah@salah-VirtualBox:~/Downloads/ns-allinone-2.35$ ns
% exit
salah@salah-VirtualBox:~/Downloads/ns-allinone-2.35$ nam
Segmentation fault (core dumped)


would u mind please help me understanding that and how it being overcome? :)

Thanks in advance.

Thanks a ton! Helped me a lot and I got it successfully installed.

Post a Comment