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.
|
 |
|
02-07-2014, 12:39 AM
|
#16
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thanku sir...
but i am new to ns2 and linux so plz can u elaborate the above post.....
i am not getting your point sir....
|
|
|
02-07-2014, 11:46 AM
|
#17
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Post # 16 .
Please tell what it is you don't understand.
|
|
|
02-10-2014, 11:15 PM
|
#18
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
sir
i amnot getting about this point
please check that ns is present as /usr/local/bin/ns
... also : delete any ns2 *PATH text added to .bashrc . Never required !
|
|
|
02-11-2014, 05:52 AM
|
#19
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 18 .
Installing the executable 'ns' to /usr/local/bin/ :
a) $ cd ns-allinone-2.xx/ns-2.xx/
b) $ sudo make install
The executable 'ns' is hard coded to know the location of it's libraries etc.
.. Meaning that nothing is to be added to .bashrc !
-
|
|
|
02-18-2014, 12:37 AM
|
#20
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thanks for ur reply sir,
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
plz help waiting for ur reply
|
|
|
02-18-2014, 02:35 AM
|
#21
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
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
|
|
|
02-20-2014, 12:15 AM
|
#22
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
plzzz help....
waiting for your reply
|
|
|
02-20-2014, 01:18 AM
|
#23
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
sir i have resolve all the above error
but i am getting new error
./test: line 3: ns: command not found
even i also set path
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
but gain i got the same error in terminal and leach.err file
pplz plz plz plz helppppp..........................
|
|
|
02-20-2014, 03:06 AM
|
#24
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 23 .
You probably have forgotten to add 'ns' to /usr/local/bin/ → →
$ cd ns-allinone-2.27/ns-2.27/
$ sudo make install
-
|
|
|
02-21-2014, 03:33 AM
|
#25
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
thanks for your reply sir
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...
plz plz plz reply sir
|
|
|
02-21-2014, 03:37 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 25 .
Quote:
rohit@rohit-Presario-V3700-Notebook-PC:~/ns-allinone-2.27/ns-2.27$ ./test
|
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
|
|
|
02-24-2014, 11:18 PM
|
#27
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
dear sir
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
plz plz plz help
|
|
|
02-26-2014, 02:41 AM
|
#28
|
LQ Newbie
Registered: Jan 2014
Posts: 18
Original Poster
Rep: 
|
ns2
sir plz reply for the above post plzzz.........eagerly waiting
|
|
|
All times are GMT -5. The time now is 02:17 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
|
|