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.
by doing those steps as per your guidance i am getting error in leach.err file
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/dilip/ns/ns-allinone-2.27/lib/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.18/library /tcl8.4.18/library /home/dilip/ns/ns-allinone-2.27/lib/tcl8.4
sir i want to ask one more thing that i have all the outputs in ns-2.27 and i have installed ns in ubuntu using ns-2.34
and is there any dffernence to run the output files of ns-2.27 using terminal
sir i have done that work as u mentioned in the above post
even i have installed again ns-allinone-2.27
but i am getting the same error and the error in the lech.err file is
couldn't read file "../lib/ns-bsnode.tcl": no such file or directory
while executing
"source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl"
(file "tcl/ex/wireless.tcl" line 191)
and when i run the test file then on terminal it displays
rohit@rohit-Presario-V3700-Notebook-PC:~/ns-allinone-2.27/ns-2.27$ ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
You are supposed to do :
$ export RCA_LIBRARY=/home/rohit/ns/ns-allinone-2.27/ns-2.27/mit/rca && export uAMPS_LIBRARY=/home/rohit/ns/ns-allinone-2.27/ns-2.27/mit/uAMPS && ./test
by giving the path as u mentioned above the same eror is coming in .err file
couldn't read file "../lib/ns-bsnode.tcl": no such file or directory
while executing
"source.orig ../lib/ns-bsnode.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 ../lib/ns-bsnode.tcl"
(file "tcl/ex/wireless.tcl" line 191)
test file is running in the terminal without any error in terminal. i am getting error in .err file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.