LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2013, 01:47 AM   #1
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled
How to install Ns2.26 on ubuntu 10.04 or fedora 10


I want to ask question about ns2.26 . so i started new thread.

I want to install nrlsensornet with ns2.26 on either fedora 10 or ubuntu 10.04

Is this possible?

I came to know that ns2.26 is can not be installed on fedora 10. how to degrade my system to fedora 8.

Thanks
 
Old 04-23-2013, 01:58 AM   #2
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
when i tried to install ns2.26 on fedora 10. I got error
sensornets-NRL/sensoragent.cc: At global scope:
sensornets-NRL/sensoragent.cc:93: error: prototype for ‘void SensorAgent::attach_sensor_app(SensorApp*)’ does not match any in class ‘SensorAgent’
./sensornets-NRL/sensoragent.h:56: error: candidate is: void SensorAgent::attach_sensor_app(int*)
make: *** [sensornets-NRL/sensoragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
[rohinisharma@localhost ns-allinone-2.26]$

ns2.34 is already installed on fedora 10 with mannasim patch
 
Old 04-23-2013, 02:30 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be the files in "nrlsensorsim-2.26.tgz" are too old ?

? Why not try out "nrlsensorsim-2.29.tar.gz" ?
http://voyager.ce.fit.ac.jp/~makoto/...im-2.29.tar.gz
 
Old 04-23-2013, 03:14 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i would NOT recommend "fedora 10"
it is 8 versions and 4 years out of date
it went END OF LIFE back in "2009-12-18"
Dec. of 09

it has NO software to install !
the old and now dead mirrors are well mostly not there any longer
after 4 years there well DEAD .


fedora 18 is the current version .

also ubuntu LTS 10.04 is about to( or has) hit it's End Of Life
the current LTS is Ubuntu 12.04

please search this forum
there are TONS of very strait forward posts on installing ns2 on fedora 18 and ubuntu 12
 
Old 04-23-2013, 01:08 PM   #5
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
? Why not try out "nrlsensorsim-2.29.tar.gz" ?
does nrlsensorsim-2.29.tar.gz work with ns2.29. ?

is nrlsensorsim a patch or another simulator?
how to install it?

Last edited by Aska123; 04-23-2013 at 01:11 PM.
 
Old 04-23-2013, 01:09 PM   #6
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
i would NOT recommend "fedora 10"

fedora 18 is the current version .

also ubuntu LTS 10.04 is about to( or has) hit it's End Of Life
the current LTS is Ubuntu 12.04

please search this forum
there are TONS of very strait forward posts on installing ns2 on fedora 18 and ubuntu 12
how to upgrade from fedora 8 to fedora 12. does nrlsensornet work with fedora 12
 
Old 04-23-2013, 01:33 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
how to upgrade from fedora 8 to fedora 12. does nrlsensornet work with fedora 12
you do not upgrade fedora8 !

fedora 12 is also a dead and unsupported version

also if you have a old fedora 8 dvd
the security hashes on it were recinded and replaced part way through the 13 month life span of fedora 8
you do a new clean install of fedora on a reformatted drive .There was NO WORKING way to upgrade it in place

currently the ONLY supported versions of fedora that are supported are
Fedora 17 and 18
with fedora 17 hitting it's End Of Life in June or July

the current fedora 18 has the needed gcc-3.4 ( gcc-compat) to build the old ns2 software
and there are gcc 4.1 ( gcc 4.8 in fedora 18 is way too new ) rpm's in the third party repos for fedora for using the ns2 gcc41 patch
you can install many different versions of gcc in a side by side set up

for ns2.29 see your other thread on this
http://www.linuxquestions.org/questi...-a-4175458207/

knudfl told you how in post #6 and repeated in post #12 and #18
 
Old 04-23-2013, 01:47 PM   #8
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
you do not upgrade fedora8 !

the current fedora 18 has the needed gcc-3.4 ( gcc-compat) to build the old ns2 software
and there are gcc 4.1 ( gcc 4.8 in fedora 18 is way too new ) rpm's in the third party repos for fedora for using the ns2 gcc41 patch
you can install many different versions of gcc in a side by side set up

for ns2.29 see your other thread on this
thanks for replying.

Now i know how to install ns2.29. I just wan to know how to install nrlsensorsim-2.29 with ns2.29?
 
Old 04-23-2013, 01:49 PM   #9
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
when i follow these steps to install nrlsensorsim -2.29 .
Open a terminal and type the following:

$ tar zxvf ns-allinone-2.29.2.tar.gz
$ tar zxvf nrlsensorsim-2.29.tar.gz
$ cd nrlsensorsim-2.29
$ ./patch_script-2.29.sh
$ cp ns2292-gcc410.patch ../
$ cd ../
$ patch -p0 < ns2292-gcc410.patch
$ cd ns-allineone-2.29/
$ ./install
i got error in installation:
./mobile/god.h:88: error: extra qualification ‘vector::’ on member ‘operator=’
./mobile/god.h:93: error: extra qualification ‘vector::’ on member ‘operator+=’
./mobile/god.h:98: error: extra qualification ‘vector::’ on member ‘operator==’
./mobile/god.h:101: error: extra qualification ‘vector::’ on member ‘operator!=’
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!
 
Old 04-23-2013, 02:37 PM   #10
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Hello KUndfi

please provide me steps to install nrlsensorsim-2.29 on ns-2.29.

I had already installed ns2.29 with Mannasim patch. If I install nrlsensorsim also , can there be any problem in ns-2.29.

even if I install it on different folder.
 
Old 04-23-2013, 02:41 PM   #11
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
There's no point in asking support questions about distros that are years out of date. Current version of Fedora is 18. Current version of Ubuntu LTS is 12.04.2. Fiddling around with anything older than that is a waste of time, and you're not going to find much help here, not the least because nobody here is running systems that are years out of date.
 
Old 04-24-2013, 12:07 AM   #12
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by guyonearth View Post
Current version of Fedora is 18. Current version of Ubuntu LTS is 12.04.2.
I just want to ask if nrlsensorsim can be installed on fedora 18. If yes then how?
 
Old 04-24-2013, 12:34 AM   #13
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
More to the point, why? The software hasn't been maintained for 8 years. You won't know unless you try. Download the tarball and extract and compile it. That's the only way to install that kind of thing.

http://downloads.pf.itd.nrl.navy.mil...im/INSTALL.txt
 
Old 04-24-2013, 05:49 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 9 : No reason use version 2.29.2 + a patch ns2292-gcc410.patch.

'ns-allinone-2.29.3.tar.gz' is the updated version for gcc version 4.1.x.
And the install command is not ./install, to compile with gcc 41x,
but : 'export CC=gcc-4.1 CXX=g++-4.1 && ./install' ( for Ubuntu 10.04).
Or : 'export CC=gcc34 CXX=g++34 && ./install' ( for any Fedora ).
! But : None of the 13 simulations examples worked here with ns-2.29.


I got one combination to work yesterday from
http://downloads.pf.itd.nrl.navy.mil.../nrlsensorsim/
> http://downloads.pf.itd.nrl.navy.mil...im-cvssnap.tgz
> nrlsensorsim-cvssnap.tgz : That's an update version for ns-2.26.
Can be compiled on an 'ns-allinone-2.26' that is not patched for gcc410.
(Usually the patch ns-2.26-gcc410.patch would work with any added protocol.
But not the nrlsensorsim protocol.)

No ns-2.26-gcc410.patch : Means that gcc version 3.2.3 (or 3.3.3) must be used :
'export CC=gcc32 CXX=g++32 && ./install'.
This one simulation worked with the resultant "ns" : $ ns basicmhop.tcl


Still one more to test : nrlsensorsim-2.27.tgz. May work ?

An old OS is OK.
Some other protocols will actually only work on a 10 year old OS.
( Like the Redhat 9 based CentOS 3). And we already know that ns-2.27 -2.28 -2.29
will create the best validate / 'make test' result with Ubuntu 10.10.

-

Last edited by knudfl; 04-24-2013 at 02:50 PM.
 
Old 04-24-2013, 02:48 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Example nrlsensorsim : The Fedora 12 based CentOS 6 - 32 (i686).
The latest compiler that works with the "nrl ns-allinone-2.26" is gcc-3.3.3 .
That's four possible ns226 combinations: Two nrl patches / gcc-3.2 or gcc-3.3.3.

The good results, CentOS 6, are with the "nrlsensorsim-2.26.tgz" patch :
$ tar xvf nrlsensorsim-2.26.tgz ; $ mv nrlsensorsim/ ns-allinone-2.26
$ tar xvf ns-allinone-2.26.tar.gz ; $ cd ns-allinone-2.26/
$ sh patch_script.sh ; $ export CC=gcc32 CXX=g++32 && sh install
Or : $ export CC=gcc-3.3 CXX=g++-3.3 && sh install

Result : basicmhop.tcl and all example_simulations/phenomXX.tcl works,
and they will all create <name>.nam

The patch nrlsensorsim-cvssnap.tgz : A poor result on this OS.

-
 
  


Reply

Tags
nrlsensorsim, 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
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
[SOLVED] how to install NS2 in Fedora 9 ? sange Linux - Software 2 01-23-2012 04:00 AM
how to install NS2.34 in fedora 14 naren123.k Linux - Software 9 03-12-2011 03:20 AM
How to install NS2 on fedora 11????? liban779 Linux - Software 5 03-04-2011 06:46 AM
how to install ns2 in fedora-5? salady86 Linux - Newbie 3 03-14-2008 08:55 AM

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

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

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