LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 03-06-2014, 11:34 AM   #16
mittal_saurabhin
Member
 
Registered: Jul 2010
Posts: 45

Rep: Reputation: 0

Quote:
Originally Posted by knudfl View Post
# 14 .

The build command for ns-allinone-2.xx is $ ./install

There is only one file by name 'ns' in ns-allinone-2.34/ns-2.34/.
* Easy recognizable as an executable. ? Can't see any ? Then use $ ls ns*

** ! When the build fails, there is no file "ns".

-
dear knudfl

When I used saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34/ns-2.34$ ls ns* then I got below mentioned files or directories........
ns.1 ns-234-leach.tar.gz ns_tclsh.cc

ns-234-leach:
apps leach_test Makefile mit tcl trace
common mac Makefile.in package_up test


Also whe I used saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34$ ls ns*
I got below mentioed files or directories

adc delaybox Makefile routealgo
allinone diffserv Makefile~ routing
AllinOne diffusion Makefile.in rtproto
aodv diffusion3 Makefile.in~ satellite
aomdv doc makefile.vc sctp
apps dsdv mannasim sensor-nets
asim dsr mcast src_rtg
autoconf.h empweb mit tcl
autoconf.h.in emulate mobile tcp
autoconf-win32.h FILES mpls test
BASE-VERSION gaf nam test-all
baytcp gen nix test-output
bin HOWTO-CONTRIBUTE ns.1 tmix
bitmap html ns-234-leach TODO.html
CHANGES.html imep ns-234-leach.tar.gz tools
classifier indep-utils ns_tclsh.cc tora
common install-sh packmime trace
conf INSTALL.WIN32 pgm update.out
config.guess leach-setup.sh plm validate
config.h leach-setup.sh~ pushback validate.out
config.log leach_test qs VERSION
config.status lib queue webcache
config.sub LICENSES rap wpan
configure link README xcp
configure.in linkstate realaudio
COPYRIGHTS mac release_steps.txt


BUT HERE MAIN THING I WOULD LIKE TO TELL YOU THAT MY ns command is working properly...........
 
Old 03-12-2014, 12:33 PM   #17
mittal_saurabhin
Member
 
Registered: Jul 2010
Posts: 45

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Fedora : tar xvf ns-allinone-2.34.tar.gz

-
m getting this error, can you please help to remove

ns mannasim-rede-hierarquica.tcl
num_nodes is set 14
WirelessPhy: channel lookup of Channel/WirelessChannel failed

(_o18 cmd line 1)
invoked from within
"_o18 cmd channel Channel/WirelessChannel"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o18" line 2)
(SplitObject unknown line 2)
invoked from within
"$netif channel $channel"
(procedure "_o14" line 121)
(Node/MobileNode add-interface line 121)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-hierarquica.tcl" line 359)

---------- Post added 03-12-14 at 11:33 AM ----------

Quote:
Originally Posted by Aska123 View Post
Thank you very much Knudfi

Thanks a lot. Its working now.

Now plz tell me how to run Mannasim framework. and how to start working with Mannasim for WSN
m getting this error, can you please help to remove

ns mannasim-rede-hierarquica.tcl
num_nodes is set 14
WirelessPhy: channel lookup of Channel/WirelessChannel failed

(_o18 cmd line 1)
invoked from within
"_o18 cmd channel Channel/WirelessChannel"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o18" line 2)
(SplitObject unknown line 2)
invoked from within
"$netif channel $channel"
(procedure "_o14" line 121)
(Node/MobileNode add-interface line 121)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 83)
(Simulator create-wireless-node line 83)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
(procedure "create_sink" line 8)
invoked from within
"create_sink"
(file "mannasim-rede-hierarquica.tcl" line 359)
 
Old 03-12-2014, 02:25 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 17, @mittal_saurabhin : Please edit post #17. Some text is shown twice.


Your errors : Looks like you have a failed build.
 
Old 11-23-2014, 02:32 PM   #19
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
remove mannasim

hi any one
i already had installed mannasim in ns2.35 , now i want to remove it from ns2. what should i do?
plz help me.
 
Old 11-23-2014, 02:58 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #19 .
Quote:
.. mannasim in ns2.35 , now i want to remove it from ns2
? Do you mean "removing all edits / adds"
.. caused by adding mannasim to ns-2.35 ?

Google, removing patches linux
https://www.google.com/webhp?hl=all&...+patches+linux
http://prajwalaa.wordpress.com/2009/...patch-command/
→ $ patch -p0 -R < patch_file_path.patch
I.e. $ patch -p0 -R < ns2.35-mannasim.patch

* Unless you used "ns-allinone-2.35-paultsr_mannasim.tar.gz".
* Then the patching may be different.

-
 
Old 11-24-2014, 11:46 AM   #21
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
remove mannasim

you mean i should write this command?
$ patch -p0 -R < ns2.35-mannasim.patch

i have an error in ns2 that i guess it is beacuas of mannasim. so i want to remove it.(i do not use mannasim at all)
 
Old 11-24-2014, 12:22 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #21 .
Quote:
you mean i should write this command ?
$ patch -p0 -R < ns2.35-mannasim.patch
That's the possibility,
if you applied a patch by name ns2.35-mannasim.patch .

More reasonable is to have multiple versions of ns2.
With the different executables in /usr/local/bin/ :
{ ns, ns-orig, ns-mannasim, ns235-mannasim } etc. etc.

I.e. you can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do never add any *PATH text to .bashrc.
* The executable 'ns-<any-name>' is hard coded to know
the location of it´s libraries ns-allinone-2.xx/{bin/*, lib/*}.

So the safe solution is simply to build another version,
usable for all the default simulations.
* A mannasim patched 'ns' is only supposed to run mannasim files.tcl .

-
 
Old 11-25-2014, 02:43 AM   #23
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
my problem

i wrote this scenario in tcl, i add to it a cbr random tarafic and a movement random as you can see it that i have athached.
now when i run this scenario i have this problem. plz plz help me.
Attached Thumbnails
Click image for larger version

Name:	scenario3.png
Views:	23
Size:	73.0 KB
ID:	16919  
Attached Files
File Type: txt scenario.txt (41.8 KB, 30 views)
 
Old 11-25-2014, 03:26 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #23 .

A simulation file.tcl should be attached as a unique name,
like simulation0-m.tcl.txt .

From your error output : ? What is " sm.tcl " ?
From your error output :
" Loading scenario file .... "
? Which scenario file ?


-
 
Old 11-25-2014, 01:16 PM   #25
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
this is the scenario.when i run the scenario its name had been sm.tcl . when i attach it here i copy the tcl file and paste to a txt file and i change its name.
 
Old 11-25-2014, 01:50 PM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #25 .

Not quite clear what you mean.
Quote:
this is the scenario.
Please define "this".


Unless generic names, please keep the naming.
`sm.tcl´ must be attached as sm.tcl.txt → →
→ → $ cp sm.tcl sm.tcl.txt


Repeat, from your error output :
" Loading ....
" Loading scenario file .... "
? Which files are connected ?
set val(cp) "../mobility/scene/m.tcl"
set opt(sc) "../mobility/scene/move"

-
 
Old 11-26-2014, 12:27 AM   #27
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
my scenario is the one that i attach here.
about :
" Loading ....
" Loading scenario file .... "
? Which files are connected ?
set val(cp) "../mobility/scene/m.tcl"
set opt(sc) "../mobility/scene/move"

pleas see my scenario, i already had used "set val(cp)" and "set opt(sc)" and now i disable this two line but i forgot to disable "puts loading..."

please dont attention to it. this is not my problem that you discuss !!!
Attached Files
File Type: txt sm.tcl.txt (41.8 KB, 22 views)

Last edited by mary1001; 11-26-2014 at 12:31 AM.
 
Old 11-26-2014, 04:11 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#27, #23.

Don't know how you got the " #23 / scenario3.png " output.

Editing line 296 from » $opt(nn) « to the valid definition:
for {set i 0} {$i < $val(nn)} {incr i} {
... and using any original / non patched ns2, I get :
Code:
.
.
num_nodes is set 40
INITIALIZE THE LIST xListHead
can't read "node_(0)": no such variable
.
.
    (file "sm.tcl" line 296)
 
Old 11-26-2014, 11:15 AM   #29
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
aha ,so your idea is that i should remove any patch that i add to ns2, like mannasim.
is this code correct?
for {set i 0} {$i < $val(nn)} {incr i} {
set $node_($i) $n($i)
}
in this code my aim has been : node_(0)==n0 and node_(1)==n1 and ....

and in output why its error reffers to AODV or DSR or ....?

Last edited by mary1001; 11-26-2014 at 11:39 AM.
 
Old 11-26-2014, 12:09 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #29 .
Quote:
so your idea is that I should remove any patch that I add to ns2
No. Never said that. Read post #22 :
"More reasonable is to have multiple versions of ns2".
** No guaranty that "removing patch" will work.
REPEAT : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do never add any *PATH text to .bashrc.

-
 
  


Reply

Tags
mannasim, ns2, wsn


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.33 intallation and path setting vahitha Fedora 29 11-22-2015 11:15 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 01:09 AM
How to install Mannasim on Ns2.33 Aska123 Linux - Wireless Networking 1 04-05-2013 04:50 AM
path in ns2 raoatta Linux - Networking 3 10-01-2008 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration