Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Mail from tani_a : Quote ...""
Code:
i got this message running leach
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)
my set path is
export PATH=$PATH:/home/hasnain/ns-allinone-2.34/bin:/home/hasnain/ns-allinone-2.34/tcl8.4.18/unix:/home/hasnain/ns-allinone-2.34/tk8.4.18/unix
Regards , Tanweer"" : End of quote.
Answer :
1) What is the original command, that takes you to this error ?
2) Setting a PATH and an LD_LIBRARY_PATH : Not required.
Is just an old text. And impossible to do, if you have more than one
version of ns-allinone-2.xx.
3) All technical discussion is supposed to take place in your thread,
so everybody can read the answers.
Start a new thread >>> http://www.linuxquestions.org/questi...ux-software-2/
> "New Thread"
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
New mail from tani_a :
Quote:
how can i update gcc 4.1.2 to gcc 4.3 version
Answer :
Which Fedora version ? ?
Generally : The default gcc-4.1.2 in Fedora ( 8 ? )
will do for the most ns2.
NS-2.27 : Please use "compat-gcc-34-c++".
I.e. : # yum install compat-gcc-34-c++
Also general : You can have as many gcc versions as you want,
installed at the same time.
I install ns-2.27 on Ubuntu 9.10. and i install leach based on this instructions on this posts ,
but now my problem with the results of energy consumption it is greater than the initial energy
for example if the initial energy of node is 5 J the final results of energy consumption of the same node is 11 J!!!
from where it gain the rest energy ? is it right ?
please if any one have any information please tell me ASAP.
I had to increase the number of nodes in LEACH from 100 to 300. So, I had to increase the size of meta_ buffer in packet.h from 1000 to 2000. ns2 stops at app.c at line tcl.evalf in the recv function.
I think I have to increase the queue / buffer size, but am unsure as to which one to do so. Please help ?
Regards,
Deepa
P.S : Further, I tried increasing various queues in the various tcl files in the different folders. However, none of these seem to work. So, I guess there is some other parameter to be changed. But, am totally clueless.
Last edited by deepa_2111; 01-30-2012 at 07:43 AM.
@ maunik : Click my name, send an email, and I will attach
mit.tar.gz + LEACH-Makefile-org to a return mail. ( 580 kB.)
.....
I want to use LEACH 2.27 but unfortunately i cant download mit.tar.gz+LEACH-Makefile-org from the specified links in forum.
please send me if anybody have.
Hello everone
Im trying to simulate my leader selection protocol on ns2 and I am a beginner on this field. I need some one who can help me with the C++ statement for random selection of a node to be a leader and the remaining energy based leader selection statement .
i think you can do a line by line conversion of the tcl code to C++ code as the logic for leader selection should remain the same.
Calculate the threshold for each node , and generate a random value for each node, and compare.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.