LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-06-2014, 05:14 AM   #1
thikathika
LQ Newbie
 
Registered: Jan 2014
Posts: 5

Rep: Reputation: Disabled
mannasim ns2.34


i have patched mannasim and than run ./ns mannasim-rede-plan.tcl but i get some error message..
how to solved this??

sudo ./ns mannasim-rede-plana.tcl
num_nodes is set 12
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "EnergyModel/Battery"
while executing
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new $energyModel_ $node $initialEnergy_ $l1 $l2"
invoked from within
"if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {..."
(procedure "_o3" line 109)
(Simulator create-wireless-node line 109)
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-plana.tcl" line 350)
 
Old 01-06-2014, 02:56 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
invalid command name "EnergyModel/Battery"
Looks like an 'ns' with no mannasim.
Reason : A failed build, or you are simply using the wrong 'ns'

It is a good idea to make a copy of the "mannasim ns" to 'ns-mannasim',
and run the commands this way : $ ns-mannasim mannasim-rede-plana.tcl

-
 
Old 01-06-2014, 03:49 PM   #3
thikathika
LQ Newbie
 
Registered: Jan 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Looks like an 'ns' with no mannasim.
Reason : A failed build, or you are simply using the wrong 'ns'

It is a good idea to make a copy of the "mannasim ns" to 'ns-mannasim',
and run the commands this way : $ ns-mannasim mannasim-rede-plana.tcl

-
it's work perfectly...
thanks...

Last edited by thikathika; 01-06-2014 at 04:03 PM.
 
Old 01-06-2014, 04:07 PM   #4
thikathika
LQ Newbie
 
Registered: Jan 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
how to make file .tr to graph that it can be analyzed??
 
Old 10-08-2014, 10:25 PM   #5
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Looks like an 'ns' with no mannasim.
Reason : A failed build, or you are simply using the wrong 'ns'

It is a good idea to make a copy of the "mannasim ns" to 'ns-mannasim',
and run the commands this way : $ ns-mannasim mannasim-rede-plana.tcl

-
As i m new to ns2
and i m getting the same error but i dont know what does it mean "copy of the "mannasim ns" to 'ns-mannasim',"
 
Old 10-09-2014, 03:37 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #5, @reenkamal : Welcome to LQ.

Copy the executable 'ns' to a new name =
Make a copy with a new name of 'ns' .

Example : $ cd ns-allinone-2.35-paultsr/ns-2.35/
$ cp ns ns-mannasim
$ sudo cp ns-mannasim /usr/local/bin/
Using : $ ns-mannasim mannasim-rede-plana.tcl

Getting the version of ns-allinone-2.35 with mannasim :
$ git clone https://github.com/paultsr/ns-allinone-2.35
.. see #24 : http://www.linuxquestions.org/questi...77#post4970177

More mannasim http://www.linuxquestions.org/questions/tags/mannasim/
.. .. http://www.linuxquestions.org/questi...annasim-ns235/


-
 
Old 10-09-2014, 05:11 AM   #7
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
[QUOTE=knudfl;5251236]Post #5, @reenkamal : Welcome to LQ.

Copy the executable 'ns' to a new name =
Make a copy with a new name of 'ns' .

Example : $ cd ns-allinone-2.35-paultsr/ns-2.35/
$ cp ns ns-mannasim
$ sudo cp ns-mannasim /usr/local/bin/
Using : $ ns-mannasim mannasim-rede-plana.tcl

Sir i tried this but still getting same error
 
Old 10-09-2014, 06:35 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #7 .

Well, then start from scratch in a new folder :
$ git clone https://github.com/paultsr/ns-allinone-2.35
$ cd ns-allinone-2.35/ && ./install
$ cd ns-2.35/
$ strip ns
$ cp ns ns235-mannasim
$ sudo cp ns235-mannasim /usr/local/bin/

$ ns235-mannasim mannasim-rede-plana.tcl
$ ns235-mannasim mannasim-rede-hierarquica.tcl

-
 
  


Reply

Tags
mannasim, mannasim-ns235, ns2


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
[SOLVED] installed Mannasim Path on Ns2.34 . Now got error Aska123 Linux - Software 34 11-28-2014 09:15 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
mannasim shaghayeghb Linux - Newbie 3 08-08-2013 08:18 AM
How to add NAM with mannasim in ns2.34 Aska123 Linux - Software 1 04-10-2013 02:14 PM
How to install Mannasim on Ns2.33 Aska123 Linux - Wireless Networking 1 04-05-2013 03:50 AM

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

All times are GMT -5. The time now is 05:26 AM.

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