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.
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.
|
 |
|
01-24-2014, 01:27 AM
|
#1
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Rep: 
|
ns2
m new to ns2
m working with LEACH protocol and m finding errors while executing leach_test file
couldn't read file "tcl/mobility/leach-c.tcl": no such file or directory
while executing
"source.orig tcl/mobility/leach-c.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 186)
can anyone help me please........
plz reply if anyone find any solution to thi error
|
|
|
01-24-2014, 04:25 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
How to use the "leach_test" file, example :
1) $ cd ns-allinone-2.xx/ns-2.xx/
2) $ export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test
** The files `test' and `leach_test' are text files. Please read them.
*** "test" is a 5 line script, that will run the "leach_test".
Leach info http://www.linuxquestions.org/questions/tags/leach/
And http://www.linuxquestions.org/questions/tags/pegasis/
-
|
|
|
01-24-2014, 05:54 AM
|
#3
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thanks sir for ur reply...very much but again the same error is coming....
is there any other alternative....
|
|
|
01-24-2014, 07:44 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 3 .
Quote:
but again the same error is coming
|
Which command are you using ? ?
|
|
|
01-27-2014, 01:14 AM
|
#5
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
i am using command ./leach_test
|
|
|
01-27-2014, 08:34 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 5 .
.. Then instead please use the command suggested in post #2 :
$ export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test
If you want to run least_test as a standalone command,
you will need a very complex setup, for all the connected files to be found.
? And why run leach_test alone, when `test' can run leach_test so clever ? ?
-
|
|
|
01-31-2014, 12:18 AM
|
#7
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thanks very much for the reply......... its somewhat working
but when after runnig test file on teminal i got half of the output file and i dont get anytype of data in leach.energy, leach.data, leach.ch..
these files are totally blank....
i got error in LEACH.err file and error is INITIALIZE THE LIST xListHead
please help .........waiting for your reply.............
|
|
|
02-02-2014, 03:06 AM
|
#8
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
plz plz reply for the above post
|
|
|
02-04-2014, 12:18 AM
|
#9
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
I got error in LEACH.err file and error is
INITIALIZE THE LIST xListHead
what does it mean can anyone tell me please?????????????????
|
|
|
02-05-2014, 05:38 AM
|
#11
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thak u very much sir for ur reply...........
but sir i got half of the output in leach.err and i am not getting any thing in leach.energy,leach.alive and leach.data...file
they all are empty....
plz plz plz reply soon...m waiting for ur reply
|
|
|
02-05-2014, 08:12 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 11 .
Well, then start from scratch, and use `exidus-pegasis-leach-ns234-patch.2.tar.gz'
https://docs.google.com/file/d/0B7S2...it?usp=sharing
1) tar xvf ns-allinone-2.34.tar.gz
2) cd ns-allinone-2.34/
3) tar xvf exidus-pegasis-leach-ns234.patch.2.tar.gz
4) export CC=gcc41 CXX=g++41
5) ./install
6) cd ns-2.34/ && sudo make install
-
|
|
|
02-06-2014, 12:40 AM
|
#13
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
sir m using ns-2.27
is the procesure is same for ns-2.27
????
|
|
|
02-06-2014, 04:31 AM
|
#14
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
sir i am getting error in terminal in test file: ns command not found
in 3 line of test file
#!/bin/bash
cd tcl/ex
ns wireless-demo-csci694.tcl
sleep 2
cd ../../
./leach_test
plz help...
|
|
|
02-06-2014, 08:28 AM
|
#15
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 13 .
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any *PATH test to .bashrc.
# 14 .
? Did you forget to do $ cd ns-2.34/ && sudo make install
... And please check that ns is present as /usr/local/bin/ns
... also : delete any ns2 *PATH text added to .bashrc . Never required !
-
|
|
|
All times are GMT -5. The time now is 02:32 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
|
|