Search This Blog

Wednesday, 27 November 2013

Ns2 installation (or) How can i set path in ns2 (or) Why i can't see the modification done in ?

Installation Steps:

                         i)   Open a terminal, type  sudo apt-get install build-essential autoconf automake libxmu-dev

                        ii)   Download the ns-allinone-2.35.tar.gz file here.

                        iii)  Extract the file and goto ns-allinone-2.35 folder

                       iv)  In terminal, type ./install

                       v)   At the end of ./install, you will be asked to set path. Copy the Path information in local file.

After ns2 installation you have to set path. For that

                           i) Goto the ns2 folder  (or) The folder where you have ns-allinone-2.35
                           ii) gedit  .bashrc

                                      export PATH=$PATH:<path1>:<path2>:<path3>

                                      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path1>:<path2>

                                      export TCL_LIBRARY=$TCL_LIBRARY:<path>

                          For  e.g) .bashrc file ( )

                          iii) source .bashrc

                          iv) Ensure that you installed ns2 correctly by enabling the hello packets (or) put some print statement inside the forward() function and seeing those in terminal after running the tcl file.

How to compile after editing aodv files ?

In cd ns-2.35 folder

     i) ./configure  ( optional )

     ii) make clean

     iii) make

    iv) make install or  sudo make install

thats it...!