LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install Ns2.26 on ubuntu 10.04 or fedora 10 (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-ns2-26-on-ubuntu-10-04-or-fedora-10-a-4175459230/)

Aska123 04-23-2013 01:47 AM

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

Aska123 04-23-2013 01:58 AM

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

knudfl 04-23-2013 02:30 AM

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

John VV 04-23-2013 03:14 AM

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

Aska123 04-23-2013 01:08 PM

Quote:

Originally Posted by knudfl (Post 4937000)
? 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?

Aska123 04-23-2013 01:09 PM

Quote:

Originally Posted by John VV (Post 4937024)
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

John VV 04-23-2013 01:33 PM

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

Aska123 04-23-2013 01:47 PM

Quote:

Originally Posted by John VV (Post 4937421)
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?

Aska123 04-23-2013 01:49 PM

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!

Aska123 04-23-2013 02:37 PM

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.

guyonearth 04-23-2013 02:41 PM

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.

Aska123 04-24-2013 12:07 AM

Quote:

Originally Posted by guyonearth (Post 4937465)
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?

guyonearth 04-24-2013 12:34 AM

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

knudfl 04-24-2013 05:49 AM

# 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.

-

knudfl 04-24-2013 02:48 PM

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.

-


All times are GMT -5. The time now is 06:20 PM.