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 |
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. |
|
 |
03-03-2013, 08:03 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2013
Posts: 11
Rep: 
|
implementation of leach protocol in ns2.34
hellow, i have installed ns-allinone2.34 in ubuntu 10.04 in ordre to integrate leach protocole i did all the steps and modifications but when i tape "leach_test" the result is : "leach_test:command not found" any help !!! 
|
|
|
|
03-03-2013, 10:05 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
The word is 'type', not "tape".
"leach_test" is not in your PATH, and is not a command :
'leach_test' is an executable script, and you can do : ./leach_test
-
Last edited by knudfl; 03-03-2013 at 10:06 AM.
|
|
|
|
03-03-2013, 05:35 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2013
Posts: 11
Original Poster
Rep: 
|
oupss sorry it was miss writing with all that stress i couldn't pay attention to that mistake "not big deal"
i did what u showed me but nothing happened i am really desperate :/
|
|
|
|
03-04-2013, 02:55 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
The basic "test simulation" is ./test, which will run 'leach_test'.
Code:
#!/bin/bash
cd tcl/ex
ns wireless-demo-csci694.tcl
sleep 2
cd ../../
./leach_test
I think there are some posts about test and leach_test in "the long leach thread"
http://www.linuxquestions.org/questi...68/page26.html
.. Look for answer by @ deepa_2111.
-
|
|
|
|
03-04-2013, 05:20 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2013
Posts: 11
Original Poster
Rep: 
|
i did the basic test-simulation nothing happened in the terminal but when i checked leach.out i did not find any thing however
leach.err has this error:
can't read "env(RCA_LIBRARY)": no such variable
while executing
"source $env(RCA_LIBRARY)/ns-ranode.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 9)
invoked from within
"source.orig mit/uAMPS/sims/uamps.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 mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig tcl/mobility/leach.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 187)
although i didn't make any changes what can i do !!?
|
|
|
|
03-05-2013, 04:23 AM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
# 5 : Did you read the LEACH threads ?
LQ Search → Tag = leach
|
|
|
|
03-05-2013, 01:48 PM
|
#7
|
|
LQ Newbie
Registered: Mar 2013
Posts: 11
Original Poster
Rep: 
|
yes i did , i even started from the beginning but always the same error pleaaaaaaaase i need your help 
|
|
|
|
03-06-2013, 11:15 AM
|
#8
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,626
|
|
|
|
|
| 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 04:35 PM.
|
|
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
|
|