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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-27-2013, 01:06 AM
|
#76
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
Quote:
Originally Posted by knudfl
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
|
|
|
|
01-27-2013, 04:02 AM
|
#77
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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)
|
|
|
|
01-27-2013, 10:39 AM
|
#78
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
Quote:
Originally Posted by knudfl
# 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
|
|
|
|
01-27-2013, 11:17 AM
|
#79
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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.
-
|
|
|
|
01-27-2013, 09:21 PM
|
#80
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
Quote:
Originally Posted by knudfl
# 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
|
|
|
|
01-28-2013, 03:43 AM
|
#81
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
#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*
-
|
|
|
|
01-28-2013, 07:43 AM
|
#82
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
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 10:42 AM.
|
|
|
|
01-28-2013, 10:23 AM
|
#83
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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
-
|
|
|
|
01-28-2013, 10:41 AM
|
#84
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
REF #83
can you please tell what is meant by binary ns ? i am new and not able to understand
|
|
|
|
01-28-2013, 10:49 AM
|
#85
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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 11:11 AM.
|
|
|
|
01-28-2013, 10:59 AM
|
#86
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
#85
thanks for helping but my issue remains unresolved
|
|
|
|
01-28-2013, 11:17 AM
|
#87
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
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 ?
|
|
|
|
01-28-2013, 11:50 AM
|
#88
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
Quote:
Originally Posted by knudfl
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
|
|
|
|
01-28-2013, 01:39 PM
|
#89
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,583
|
# 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 02:35 PM.
|
|
|
|
01-28-2013, 09:31 PM
|
#90
|
|
LQ Newbie
Registered: Jan 2013
Posts: 13
Rep: 
|
#89
P.S. : By the way, what happens when you type the command $ which ns <Enter> ?
ans : /usr/local/bin/ns
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:05 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|