Search This Blog

Showing posts with label ns2 sensor networks. Show all posts
Showing posts with label ns2 sensor networks. Show all posts

Installing ns2.26 with nrlsensorsim on Fedora 8

147

Labels: , , , , , ,

ns2 sensor networks

NRLSensorSim is a patch developed and maintained by U.S. Naval Research Laboratory. This patch enables sensor network simulations on ns2. 

Due to new versions of gcc, ns2.26 with nrlsensorsim patch cannot be installed directly on fedora 8.


Minor modifications in the code of ns2.26 and nrlsensorsim are required.

Hence I have designed two patches that incorporate all the modifications required in ns2.26 and nrlsensorsim code to be installed on fedora 8 (or other linux distributions having similar gcc version). 

Following are the steps to install ns2.26 with nrlsensorsim on fedora 8 (or other linux distributions having similar gcc version): 



3) Download ns226.patch (after downloading the file change its name to ns226.patch in case if the file gets downloaded by some other name). 

If you encounter any problem in downloading from the above link please follow the link given below: 

4) Download ns226nrl226.patch (after downloading the file change its name to ns226nrl226.patch in case if the file gets downloaded by some other name). 

If you encounter any problem in downloading from the above link please follow the link given below:


5) Save ns-allinone-2.26.tar.gz and nrlsensorsim-2.26.tgz.gz in any directory (folder) of your file system. 

6) Open a new terminal and go to that directory. 

7) Give the following command to untar ns-allinone-2.26.tar.gz 
tar  -xzvf  ns-allinone-2.26.tar.gz 

and following command to untar nrlsensorsim-2.26.tgz.gz
tar  -xzvf  nrlsensorsim-2.26.tgz.gz

8) After executing the above command you will find the extracted folders named ns-allinone-2.26 and nrlsensorsim in the same directory.
Put the downloaded ns226nrl226.patch file in the extracted folder named nrlsensorsim. 

9) Using a terminal enter in this extracted folder (nrlsensorsim) and give the following command 
patch  -p1  -t  <  ns226nrl226.patch

then give the following command
./patch_script.sh 

if is asks for any permission, type yes and press enter.

10) Put the downloaded ns226.patch file in the extracted folder named ns-allinone-2.26.

11) Using a terminal enter in this folder (ns-allinone-2.26) and give the following command 
patch  -p1  -t  <  ns226.patch

12) After successfully completing the above procedure install ns2.26 by giving the following command (in same extracted folder) 
./install 

Installation may take several minutes !!! 

Regards