URGENT HELP!!! GPSR patch with ns-2.34 ubuntu 12.04
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
}"
Last edited by palkigupta; 05-17-2015 at 01:28 PM.
** 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> }.
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.
Please read the "Question Guidelines" and "How to ask a smart question" links in my posting signature.
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 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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.