LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 02-07-2014, 12:39 AM   #16
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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....
 
Old 02-07-2014, 11:46 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Post # 16 .

Please tell what it is you don't understand.
 
Old 02-10-2014, 11:15 PM   #18
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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 !
 
Old 02-11-2014, 05:52 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 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 !

-
 
Old 02-18-2014, 12:37 AM   #20
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-18-2014, 02:35 AM   #21
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-20-2014, 12:15 AM   #22
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
ns2

plzzz help....
waiting for your reply
 
Old 02-20-2014, 01:18 AM   #23
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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..........................
 
Old 02-20-2014, 03:06 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 23 .
Quote:
ns: command not found
You probably have forgotten to add 'ns' to /usr/local/bin/ → →

$ cd ns-allinone-2.27/ns-2.27/
$ sudo make install

-
 
Old 02-21-2014, 03:33 AM   #25
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-21-2014, 03:37 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 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
 
Old 02-24-2014, 11:18 PM   #27
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-26-2014, 02:41 AM   #28
daidrohit
LQ Newbie
 
Registered: Jan 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
ns2

sir plz reply for the above post plzzz.........eagerly waiting
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 12:03 PM
Make command not found in ns2.34 and ns2.29 Aska123 Linux - Software 11 04-09-2013 11:58 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration