installed Mannasim Path on Ns2.34 . Now got error
Hello friends,
I have installed Ns2.34 on fedora 10. Then I run patch ns2.34-mannasim-gcc4.3.patch . But when I tried to run mannasim-rede-plana.tcl test script. I got the following error message. % ns mannasim-rede-plana.tcl warning: using backward compatibility mode error when calling class OldSim: mannasim-rede-plana.tcl % please suggest me how to work on Mannasim . I an working on WSN. Thanks |
Fedora : tar xvf ns-allinone-2.34.tar.gz
patch -p1 < ns2.34-mannasim-gcc4.3.patch cd ns-allinone-2.34/ export CC=gcc34 CXX=g++34 && ./install cd ns-2.34/ ; cp ns ns-mannasim ./ns-mannasim mannasim-rede-plana.tcl Code:
[knudfl@localhost ns-2.34]$ ./ns-mannasim mannasim-rede-plana.tcl I.e. do not use "% ns file.tcl", but plain $ ns file.tcl - |
Thank you very much Knudfi
Thanks a lot. Its working now. Now plz tell me how to run Mannasim framework. and how to start working with Mannasim for WSN |
2 Attachment(s)
Quote:
Google .. how to run Mannasim framework .. : 970 hits. http://www.mannasim.dcc.ufmg.br/ http://www.mannasim.dcc.ufmg.br/howto.htm http://www.mannasim.dcc.ufmg.br/msg-basic-window.htm WSN http://ns-2.blogspot.dk/2010/04/mann...-networks.html http://www.docstoc.com/docs/54719487...Classes-Manual .. etc. etc. |
Thanks Kundfi.
I will read these links. |
[QUOTE=knudfl;4927338]Fedora : tar xvf ns-allinone-2.34.tar.gz
patch -p1 < ns2.34-mannasim-gcc4.3.patch cd ns-allinone-2.34/ export CC=gcc34 CXX=g++34 && ./install cd ns-2.34/ ; cp ns ns-mannasim ./ns-mannasim mannasim-rede-plana.tcl dear knudfl saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34$ patch -p1 < ns2.34-mannasim-gcc4.3.patch patching file ns-2.34/apps/udp.cc Hunk #1 FAILED at 93. Hunk #2 FAILED at 108. patch: **** Failed to set the timestamps of file ns-2.34/apps/udp.cc.orig : Operation not permitted I got this error while patching up the mannasim in ns-allinone-2.34 folder I got mannasim-patch-ns2.29.tar.gz zip file with me ...... Can you please guide what is to be done for making mannasim work for me |
# 6 .
Quote:
$ tar xvf ns-allinone-2.34.tar.gz && patch -p1 < ns2.34-mannasim-gcc4.3.patch .. I.e. do not "cd ns-allinone-2.34/" until you have done the patch command. See #2. Solution : Delete ns-allinone-2.34/ , and start from scratch with : $ tar xvf ns-allinone-2.34.tar.gz && patch -p1 < ns2.34-mannasim-gcc4.3.patch About "Hunk #Xx FAILED : Please check if the patch really did the editing. The patch command will sometimes report an error, though everything is OK. You can see the "failed" code text in "udp.cc.rej". Quote:
I.e. all ns2 command are to be done as unprivileged user. About "Failed to set the timestamps" : Things may work OK when you do the patching from the right location : Outside of ns-allinone-2.34/ . - |
Quote:
Second question is whether extraction of mannasim-patch-ns2.29.tar.gz is to be done before applying the commands as you mentioned above.... Third qs is whether ns-2.34 and mannasim patch available with me is 2.29 compatible with each other.... |
[QUOTE=knudfl;5126543]# 6 .
Wrong. It's : $ tar xvf ns-allinone-2.34.tar.gz && patch -p1 < ns2.34-mannasim-gcc4.3.patch What do you mean by unprivileged user??? Is there any difference between root login and unprivileged user login Although at my prompt it is showing $ not # |
@knudfl
when I used the command as you mentioned above, after some time it asked me to provide the name of the file to patch. and when I provided the name of the patch file it is showing me below given error again and again. File to patch: patch -p2 < ns2.34-mannasim-gcc4.3.patch patch -p2 < ns2.34-mannasim-gcc4.3.patch: No such file or directory Skip this patch? [y] y Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 86 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -rupN ns-allinone-2.34-orig/ns-2.34/common/packet.h ns-allinone-2.34/ns-2.34/common/packet.h |--- ns-allinone-2.34-orig/ns-2.34/common/packet.h 2009-06-14 19:35:44.000000000 +0200 |+++ ns-allinone-2.34/ns-2.34/common/packet.h 2009-11-12 15:43:11.000000000 +0100 -------------------------- do you have any idea about this |
# 10 : Do not quote entire posts. And certainly not twice.
Please edit posts #8, #9. A "one word" reference will do. The command $ patch -p1 < ns2.34-mannasim-gcc4.3.patch .. means that the file ns2.34-mannasim-gcc4.3.patch .. must be present in the current directory. Hence these chained commands : $ tar xvf ns-allinone-2.34.tar.gz && patch -p1 < ns2.34-mannasim-gcc4.3.patch # 8 : No. Patches are not compatible with anything. Can be used in the ns2 version they are meant for only. May be you meant something else ? * ns-2.29 and ns-2.34 are very different. Se ns-allinone-2.xx/ns-2.xx/CHANGES.html . # 8 : Using "mannasim-patch-ns2.29.tar.gz" Unpack to mannasim.patch.diff. `mannasim.patch.diff' is the patch / the text file (which you can read.) - |
@knudfl
cd ns-2.34/ ; cp ns ns-mannasim cp: cannot stat ‘ns’: No such file or directory saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34/ns-2.34$ when I run this command after ./install as per your blog, m getting this error. Do you have any idea what to do now...... |
# 12 .
First : Build ns-allinone-2.34/ + mannasim. When the file 'ns' is present in ns-2.34/, you can use it, copy to <name>, etc. But : If the build fails, there might not be any 'ns'. - |
Quote:
by build are we talking about installation of ns-allinone-2.34 and mannasim or something else can you please provide the detailed description of this build word...... also I do have number of files/folders in ns2.34 but dont know which one to copy..... my ms2 is working as well as my nam is working properly for tcl files |
# 14 .
The build command for ns-allinone-2.xx is $ ./install There is only one file by name 'ns' in ns-allinone-2.34/ns-2.34/. * Easy recognizable as an executable. ? Can't see any ? Then use $ ls ns* ** ! When the build fails, there is no file "ns". - |
All times are GMT -5. The time now is 05:00 AM. |