LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-17-2015, 01:26 PM   #1
palkigupta
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 05-17-2015, 02:11 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
I have made all the necessary changes required in the various files
There is no editing to be done. Please use the tested patches.


Quote:
Everytime I run my tcl file an error keeps coming up
"my tcl file" is not a valid specification. A file name, please.
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> }.

-

Last edited by knudfl; 05-17-2015 at 02:14 PM.
 
Old 05-17-2015, 02:20 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by palkigupta View Post
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.
 
1 members found this post helpful.
Old 05-17-2015, 02:30 PM   #4
palkigupta
LQ Newbie
 
Registered: May 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-17-2015, 03:59 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-
 
Old 05-20-2015, 03:58 PM   #6
palkigupta
LQ Newbie
 
Registered: May 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
gpsr, ns2



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
LXer: Urgent Kernel Patch for Ubuntu LXer Syndicated Linux News 0 05-12-2015 11:39 PM
Patch of GPSR for NS2.35 purohit_kaml Linux - Wireless Networking 29 05-05-2015 11:04 PM
gpsr and olsr patch for ns-2.35 farfattou Linux - Software 3 07-11-2014 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 PM.

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