how to integrate the "Resource/Energy" leach class into NS-2.34?
Linux - SoftwareThis 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.
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.
You have to recompile ns. It says that your have not installed NS. or your bashrc file have not set correctly. Overall you have not NS installed on your system.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
# 201.
Actually ns will do fine with no "adding any *PATH"
or changes at all in .bashrc .
Which is also impossible, if you have more than one ns2 version installed.
( I can have easily have 10 versions of ns-allinone-2.xx on each OS.)
***** ns is hard coded to know, where its libraries are located !
The old text about adding *PATH is probably only valid for Windows/Cygwin.
hi ! i have succesfully patched ns2.34 leach and i run the test it is showing no errors.
but when i try to run leach.tcl file i am getting this error
moin@moin-Precision-WorkStation-370:~/Desktop$ ns leach.tcl
couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory
while executing
"source.orig mit/uAMPS/ns-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 mit/uAMPS/ns-leach.tcl"
(file "leach.tcl" line 7)
plz reply soon
hi ! and when i try to run leach_test i got this error
moin@moin-Precision-WorkStation-370:~/ns-allinone-2.34/ns-2.34/ns-234-leach$ ns leach_test
invalid command name "alg=leach"
while executing
"alg=leach"
(file "leach_test" line 5)
Add 'hardy' to /etc/apt/sources.list : g++-3.3....gcc-4.2((g++-4.2)) will be available.
sudo gedit /etc/apt/sources.list ; sudo apt-get update
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
Hi
please help i had same problem of Resource/energy in leach.err file
What can i do?where do I require changes?I cant find location in Fedora14
Thanks
Khushbu
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Post # 206, @khushbushah.
Fedora 14 : With no other error indications, suggest ...
Start from scratch in /home/<user-name>/ns-allinone-2.34/ http://www.linuxquestions.org/questi...dora13-907076/
.. using the script leach-HOME-setup234.sh
And don't forget the new modified file cmu-trace.h
And then : cd ns-allinone-2.34/ns-2.34/ &&
./configure && make clean && make && ./test
Hi !i have this problem when i am running some of the files of leach after succesfully patching with no errors or warnings
moin@moin-Precision-WorkStation-370:~/ns-allinone-2.34/ns-2.34/ns-234-leach/tcl/ex$ ns wireless.tcl
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory
while executing
"source.orig tcl/lib/ns-mobilenode.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/lib/ns-mobilenode.tcl"
(file "wireless.tcl" line 184)
plz help me out
Hi ! i want to know which of the files to be generated for leach simulations and where the results will be stored,
bcos when i try to run stats.tcl the file is generating but i cant find the output.so plz help me to solve this problem.
the other thing is that when i try to run some tcl files i get this error what it means ?
moin@moin-Precision-WorkStation-370:~/ns-allinone-2.34/ns-2.34/ns-234-leach/mit/uAMPS/sims$ ns leach.tcl
couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory
while executing
"source.orig mit/uAMPS/ns-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 mit/uAMPS/ns-leach.tcl"
(file "leach.tcl" line 7)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.