URGENT HELP!!! GPSR patch with ns-2.34 ubuntu 12.04
Hey guys
I have been trying to patch GPSR with ns-2.34.The operating system i am using is ubuntu 12.04. I have made all the necessary changes required in the various files . I have another version of ns (ns-2.35 ) too but it is in a different directory. Everytime I run my tcl file an error keeps coming up. I will be greatful if somebody can help me.This is very very URGENT. (_o29 cmd line 1) invoked from within "_o29 cmd if-queue _o23" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o29" line 2) (SplitObject unknown line 2) invoked from within "$agent if-queue [$self set ifq_(0)] " (procedure "_o17" line 28) (Node/MobileNode add-target line 28) invoked from within "$self add-target $agent $port" (procedure "_o17" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "create-gpsr-routing-agent" line 29) invoked from within "create-gpsr-routing-agent $node $id" (procedure "gpsr-create-mobile-node" line 41) invoked from within "gpsr-create-mobile-node $i" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { gpsr-create-mobile-node $i }" |
Welcome to LQ.
Quote:
Quote:
And the command used for running the file is missing. Please read ... . http://www.linuxquestions.org/linux/...Ask_a_Question . http://www.catb.org/~esr/faqs/smart-questions.html ? Which GPSR is this about ? GPSR-hls ? Or GPSR-KeLiu ? GPSR info : . http://www.linuxquestions.org/questions/tags/gpsr/ . Post #27 http://www.linuxquestions.org/questi...835/page2.html . http://network-simulator-ns-2.7690.n...gpsr&sort=date . https://groups.google.com/forum/?fro...GPSR|sort:date ** You can have as many ns-allinone-2.xx as you want, on the same OS. But : Do never add any *PATH text to .bashrc . Not required. Just keep all your "ns' / "ns-any-name" in /usr/local/bin/ : /usr/local/bin/{ ns, ns235, ns-gpsr-hls, ns-gpsr-keliu, <etc. ns-new-name> }. - |
Quote:
Your homework is NOT URGENT for ANYONE here in ANY WAY...this is a volunteer forum...asking for/expecting 'urgent' help is fairly rude. Not providing details and relevant information only serves to make things take LONGER to answer. |
The tcl file I have used is wireless-gpsr.tcl .
The last time I used GPSR-KeLiu patch, my ns stopped working. So I was recommended to make changes and add this protocol. The commands I used to run wireless-gpsr.tcl file were: 1. First of all I had run the commands make clean and make. 2. Then i did cp ns ns2 3. Followed by sudo cp ns2 /usr/local/bin/ 4. Then after entering the gpsr folder, I executed the command ns2 wireless-gpsr.tcl I wrote the first 3 commands in order to just tell the process. |
Re #4, #1.
OK, seems you have a failed build. Please start from scratch with a new unpacked ns-allinone-2.34.tar.gz in /home/name/<new-folder>/. * Be aware that the "/home/name/Desktop/ cannot be used. $ cd ns-allinone-2.34/ $ patch -p0 < gpsr-KeLiu_ns234.patch $ patch -p0 < ns234_gcc49.patch $ ./install $ cd ns-2.34/ $ cp ns ns-gpsr-keliu $ sudo cp ns-gpsr-keliu /usr/local/bin/ $ cd gpsr/ $ ns-gpsr-keliu wireless-gpsr.tcl Links : gpsr-KeLiu_ns234.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing ns234_gcc49.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing - |
how to load other scenario file ?
Thanks knudfl for guiding me. It worked..
Can u guide me over one thing more?In the wireless-gpsr.tcl file in the patch, I want to load my scenario file and the traffic mobility file.How to do that and run gpsr protocol over the osm map i have imported? When i run it in the same form as for aodv , It gives error. |
All times are GMT -5. The time now is 05:43 PM. |