LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Closed Thread
 
Search this Thread
Old 01-27-2013, 02:06 AM   #76
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
Ref. # 70

Are you sure you have the ns-2.34/gpsr/ directory ?

And did you add the new lines to the Makefile ( or Makefile.in ) ?
( Line 330 in the Makefile.in )
Code:
  	gpsr/gpsr_neighbor.o \
	gpsr/gpsr_sinklist.o \
	gpsr/gpsr.o
The valid link is http://www.cs.binghamton.edu/~kliu/r...ndex.html#gpsr
( The link in post # 74 is a copy of "half a link".)

-
Yes i have ns-2.34/gpsr
i have added these lines in the Makefile ,
re installed gpsr folder from new link still the same AGENT problem

please guide what can be done
 
Old 01-27-2013, 05:02 AM   #77
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
# 76
Please upload the files that you added to ns-2.34 .
I.e. upload to Google.Docs as "gpsr-KeLiu-ns234.tar".
Like this ...
Code:
ns-2.34/common/packet.h
       /gpsr/ gpsr.h gpsr_neighbor.h gpsr_sinklist.cc                      
              gpsr.cc gpsr_neighbor.cc gpsr_packet.h gpsr_sinklist.h
       /queue/priqueue.cc
       /trace/cmu-trace.cc
       /Makefile(.in)
 
Old 01-27-2013, 11:39 AM   #78
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 76
Please upload the files that you added to ns-2.34 .
I.e. upload to Google.Docs as "gpsr-KeLiu-ns234.tar".
Like this ...
Code:
ns-2.34/common/packet.h
       /gpsr/ gpsr.h gpsr_neighbor.h gpsr_sinklist.cc                      
              gpsr.cc gpsr_neighbor.cc gpsr_packet.h gpsr_sinklist.h
       /queue/priqueue.cc
       /trace/cmu-trace.cc
       /Makefile(.in)
here uploaded the files
https://docs.google.com/folder/d/0Bz...RfbS04aXc/edit

plss help
 
Old 01-27-2013, 12:17 PM   #79
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
# 78

Sorry, not usable : No option to download files, when they are separate.
( Or it takes too long time.)
Must at least be provided as a tar package.

It goes this way : $ tar -cf ns-2.34.tar ns-2.34/
( If you want to save some time and space, the "test" can be moved away,
while you pack up the files : ns-2.34/tcl/test/, i.e test/ is 39.4 MB.
No "test/" : the tarball is 30.9 MB.)

Compressing "ns-2.34.tar" : gzip ns-2.34.tar
.. Then the package is down to 10.9 MB if test/ is omitted.

-
 
Old 01-27-2013, 10:21 PM   #80
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 78

Sorry, not usable : No option to download files, when they are separate.
( Or it takes too long time.)
Must at least be provided as a tar package.

It goes this way : $ tar -cf ns-2.34.tar ns-2.34/
( If you want to save some time and space, the "test" can be moved away,
while you pack up the files : ns-2.34/tcl/test/, i.e test/ is 39.4 MB.
No "test/" : the tarball is 30.9 MB.)

Compressing "ns-2.34.tar" : gzip ns-2.34.tar
.. Then the package is down to 10.9 MB if test/ is omitted.

-
here is the tar https://docs.google.com/file/d/0BzF-...53bHFYR0k/edit
 
Old 01-28-2013, 04:43 AM   #81
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
#80, your result https://docs.google.com/file/d/0BzF-...53bHFYR0k/edit
$ cd gpsr-KeLiu-ns234/ns-2.34/gpsr/ && cp ../ns ./
$ ./ns wireless-gpsr.tcl
Code:
num_nodes is set 100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Load complete...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 129.2
SORTING LISTS ...DONE!
NS EXITING...
.. And these files are created : gpsrnb_trace.tr nam.out.tr sinklist.tr trace.tr .

Your "Agent/GPSR" issue : May be you are using an 'ns' from another install ?
If you added something to ~.bash_profile : Please delete. Not required.
And not possible, if you have more than one version of ns2.
The trick is to rename all 'ns' to e.g. ns234, ns-orig, ns-hls, ns-gpsr-KeLiu,
etc. etc., and then copy all ns** to /usr/local/bin/ : A system PATH.
Or use as ./ns*

-
 
Old 01-28-2013, 08:43 AM   #82
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
Sir it is still not working for me
again the same error

does this error mean GPSR has not been patched ?

Last edited by VanetG; 01-28-2013 at 11:42 AM.
 
Old 01-28-2013, 11:23 AM   #83
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
# 82 : Please do not quote complete posts. Makes the thread difficult to read.
One line quoted, or just a "Ref. post#* " will do. Please edit your posts.


No, I don't know why your perfectly OK result isn't working in your OS.
As you can see, your 'ns' binary works here : ./ns wireless-gpsr.tcl
.
Suggest : Make a copy of the binary 'ns' from ns-2.34/ to ns-2.34/gpsr/,
and do : $ ./ns wireless-gpsr.tcl

-
 
Old 01-28-2013, 11:41 AM   #84
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
REF #83

can you please tell what is meant by binary ns ? i am new and not able to understand
 
Old 01-28-2013, 11:49 AM   #85
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
# 84.

The binary / executable 'ns' is the file ns-allinone-2.34/ns-2.34/ns

The file size is about 7.5 MB.



-

Last edited by knudfl; 01-28-2013 at 12:11 PM.
 
Old 01-28-2013, 11:59 AM   #86
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
#85
thanks for helping but my issue remains unresolved
 
Old 01-28-2013, 12:17 PM   #87
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
OK, I can make an installable package "gpsr-keliu-ns-2.34-ubuntu*_i386.deb" for your OS.

Which version of Ubuntu are you using ?
 
Old 01-28-2013, 12:50 PM   #88
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
OK, I can make an installable package "gpsr-keliu-ns-2.34-ubuntu*_i386.deb" for your OS.

Which version of Ubuntu are you using ?
10.04 , that would be great if u could do that
 
Old 01-28-2013, 02:39 PM   #89
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,152

Rep: Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642Reputation: 2642
# 88 : A package gpsr-keliu-ns-2.34-ubuntu10_i386.deb has been uploaded to
https://docs.google.com/file/d/0B7S2...p5SDc5dkE/edit

Can be installed with ( If you have a 32bits OS (i686)) :
sudo dpkg -i gpsr-keliu-ns-2.34-ubuntu10_i386.deb

The package provides : /usr/local/bin/ns-gpsr-k
/usr/local/lib/gpsr-KeLiu/ns-allinone-2.34/bin/**
/usr/local/lib/gpsr-KeLiu/ns-allinone-2.34/lib/**

Using : $ ns-gpsr-k wireless-gpsr.tcl


P.S. : By the way, what happens when you type the command $ which ns <Enter> ?

-

Last edited by knudfl; 01-28-2013 at 03:35 PM.
 
1 members found this post helpful.
Old 01-28-2013, 10:31 PM   #90
VanetG
LQ Newbie
 
Registered: Jan 2013
Posts: 13

Rep: Reputation: Disabled
#89

P.S. : By the way, what happens when you type the command $ which ns <Enter> ?

ans : /usr/local/bin/ns
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 07:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 06:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 02:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 07:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 05:24 AM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration