LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2012, 12:09 AM   #1
jeevanpinto
LQ Newbie
 
Registered: Feb 2012
Posts: 3
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 03-05-2012, 12:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 !
 
Old 03-05-2012, 02:58 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
Attached Files
File Type: txt mannasim-rede-hierarquica.txt (12.2 KB, 52 views)
File Type: txt mannasim-rede-plana.txt (12.1 KB, 37 views)

Last edited by Satyaveer Arya; 03-05-2012 at 02:59 AM.
 
1 members found this post helpful.
Old 04-20-2012, 08:10 AM   #4
hmd_jfr
LQ Newbie
 
Registered: Apr 2012
Location: zanjan - iran
Distribution: fedora - ubunto
Posts: 6

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 10-02-2013, 12:09 AM   #5
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Rep: Reputation: Disabled
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
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install ns2.29 on Ubunto 11.04(NIST Mobility Patch) fahimeh_ak Programming 38 03-24-2015 06:45 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
seeking advice to install 802.11e patch in ns2 stud17 Linux - Newbie 48 11-04-2012 10:09 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration