LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   want to install ns2.29.3 along with mannasim patch for ns2.29 (https://www.linuxquestions.org/questions/linux-software-2/want-to-install-ns2-29-3-along-with-mannasim-patch-for-ns2-29-a-932750/)

jeevanpinto 03-05-2012 12:09 AM

want to install ns2.29.3 along with mannasim patch for ns2.29
 
I have downloaded ns2.29.3 and mannasim patch for ns2.29. I want to install now. I want to know what is the best platform to install. I also want to know the procedure of installing these. Thank you

knudfl 03-05-2012 12:54 AM

Welcome to LQ. .. :) ..

All ns2 versions were built and tested on CentOS / Scientific / Fedora.
Suggest CentOS 6.x, Scientific Linux SL 6.x, Fedora 16.

# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

cd ns-allinone-2.29/ && export CC=gcc34 CXX=g++34 && ./install


Good luck !

Satyaveer Arya 03-05-2012 02:58 AM

2 Attachment(s)
Ubuntu would be the best platform for all this.

Now you have downloaded ns and mannasim patch so you now you go here -

Unpack the tar.gz file of mannasim into ns-2.29 main folder (if using ns all-in-one distribution ns-allinone-2.29/ns-2.29 folder). Inside mannasim/ folder just created look for a ns-modified-files/ folder, where ns-2.29 modified files are stored.

Substitue ns-2.29 files listed bellow by it's MannaSim version stored in ns-modified-files/ folder in mannasim/ directory.
ns-2.29/apps/udp.cc
ns-2.29/common/ns-process.h
ns-2.29/common/packet.cc
ns-2.29/common/packet.h
ns-2.29/mac/mac-802_11.cc
ns-2.29/tcl/lib/ns-lib.tcl
ns-2.29/tcl/lib/ns-default.tcl
ns-2.29/Makefile.in

In ns-2.29 main folder re-run configuration script and then re-compile the system:
Code:

./configure
  ./make

To test MannaSim installation I have attached two simulation scripts. The first one simulates a hierarchical network composed of two diferent classes of sensor nodes and the second one simulates a flat network of homogeneous sensors.

hmd_jfr 04-20-2012 08:10 AM

first download mannasim diff file of manaasim-site
and copy diff file in the ns-allinone-version folder
and run command
patch -p1< mannasim-patch.diff
after patching mannasim plz run install command
./install

najma 10-02-2013 12:09 AM

Ns-2.29 make error
 
Hi, I m working on the energy model of leach protocol, and for that using Ns-2.29 with mannasim. I have added few lines in battery.cc and battery.h ( which is used for sensor nodes), and run make command, my code compiles perfectly without any error, then I commented the changes made and run make command, now I m getting this error. I have checked classifier-bst.cc and ump.h is included. I haven't access or changed any of these files but don't know why I m getting this. I'll be grateful if anyone can help in resolving this issue.
Regards,
Najma


classifier/classifier-bst.cc
classifier/classifier-bst.cc:62:17: error: ump.h: No such file or directory

classifier/classifier-bst.cc: In member function ‘virtual void MCastBSTClassifier::recv(Packet*, Handler*)’:
classifier/classifier-bst.cc:158: error: ‘hdr_ump’ was not declared in this scope
classifier/classifier-bst.cc:158: error: ‘ump’ was not declared in this scope
classifier/classifier-bst.cc:158: error: ‘hdr_ump’ is not a class or namespace
make: *** [classifier/classifier-bst.o] Error 1


All times are GMT -5. The time now is 02:49 AM.