LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2010, 02:45 AM   #1
adi.trisna
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
error while running MAODV in ns-2.34


hello, right now i encounter error while trying to run a simulation for MAODV in ns-2.34.
=========================================================================
it says :
rangga@rangga-laptop:~/maodv/untitled folder/maodv-scripts$ ns ns.tcl 01 10 1
num_nodes is set 50
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
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 "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 79)
(Simulator create-wireless-node line 79)
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"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $nodes} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;
}"
(file "ns.tcl" line 43)

=========================================================================
what is the problem? could anyone help me to fix it?
 
Old 02-05-2010, 07:07 AM   #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:
maodv/untitled folder/maodv-scripts
What are these files, and where did you get them ?

Quote:
ns ns.tcl 01 10 1
Is this your exact command ?
And please attach 'ns.tcl' as " ns.tcl.txt ".
.....

And what are the errors ?
.....

Last edited by knudfl; 02-05-2010 at 07:47 AM.
 
Old 02-07-2010, 06:26 AM   #3
adi.trisna
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
@ knudfl, sorry, it takes to long to reply,

Quote:
maodv/untitled folder/maodv-scripts
it my directory of MAODV module.

i downloaded the maodv module from :
http://kunz-pc.sce.carleton.ca/Thesis/maodv-code.zip
at there, they provided a step by step implementation but only for ns-2.26.

Quote:
ns ns.tcl 01 10 1
yes that is the code to run maodv.

and this is the error after i run maodv in ns-2.34
Quote:
num_nodes is set 50
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
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 "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 79)
(Simulator create-wireless-node line 79)
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"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $nodes} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;
}"
(file "ns.tcl" line 43)
 
Old 02-07-2010, 07:03 AM   #4
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
Thank you for the link.

> > http://kunz-pc.sce.carleton.ca/Thesis/maodv-code.zip

http://kunz-pc.sce.carleton.ca/Thesis/maodv-ns-2.26.pdf
> maodv-ns-2.26.pdf

http://kunz-pc.sce.carleton.ca/Thesis/maodv-scripts.zip
> maodv-scripts.zip > > ns.tcl , etc.

http://kunz-pc.sce.carleton.ca/Thesis/

May be, the code will work in ns-2.26 only ?

I will have a look at it, when I find time to do so.
.....

Last edited by knudfl; 02-07-2010 at 07:17 AM.
 
Old 02-07-2010, 09:36 AM   #5
adi.trisna
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
it's just weird for maodv if it can run in ns-2.26 only and it can't run on newer version of ns-2. i've been searching using google and i don't find any. hm...

by the way, thank you for your reply, i really appreciate it...
 
Old 02-19-2010, 11:00 PM   #6
sivafedora
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 0
reply

To be precise, you cannot implement MAODV on ns2.34

The maodv implemenatation is done on ns2.26 (files you downloaded from Thomas Kunz). ns 2.26 can install only on RedHat9 Operating System. I tried many times doing MAODV on fedora with ns 2.31 and 2.33. The only way is get a RedHat9 OS, install ns 2.26, then Run the MAODV simulation.

All the Best

sivaprasad.mtech@gmail.com
 
Old 02-20-2010, 06:28 AM   #7
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:
ns 2.26 can install only on RedHat9 Operating System
Almost correct, but not quite.

ns-2.26 will run with no problems on
the redhat 9 based CentOS 3.9 .
CentOS 3.9 has end of life : October-31-2010.
http://www.linuxquestions.org/questi...-fc9-774202/#9
> > post # 9 , etc.
.....
 
Old 07-12-2010, 08:25 AM   #8
thinhtelecom
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
Wink

Quote:
Originally Posted by sivafedora View Post
To be precise, you cannot implement MAODV on ns2.34

The maodv implemenatation is done on ns2.26 (files you downloaded from Thomas Kunz). ns 2.26 can install only on RedHat9 Operating System. I tried many times doing MAODV on fedora with ns 2.31 and 2.33. The only way is get a RedHat9 OS, install ns 2.26, then Run the MAODV simulation.

All the Best

sivaprasad.mtech@gmail.com
Hi !

I really want to install ns-2.26 on Redhat Linux 9.0; however, it occurs some problems (with picture enclosed)
http://i371.photobucket.com/albums/o...-10_221239.jpg

Anyone please tell me the way to install ns-2.26 on Redhat 9.0.
Thanks a lot !
Regards,
thinhtelecom
 
Old 07-13-2010, 04:59 AM   #9
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
ns-allinone-2.26 .. ns-2.26-aodv-uu-mip

@ thinhtelecom, post # 8.

Looking for trouble :
Use Redhat 9, released 2002, obsoleted 2004.
If you want to use it : make a complete install :
All development tools must be included.
( glibc-devel, gcc, gcc-c++, etc. etc. )

'ns-allinone-2.26' : Any Linux with gcc / g++ 3.3.3 is OK.
Like Suse 11.2, Fedora 12. Fedora requirements :
# yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel \
xorg-x11-proto-devel make automake autoconf libtool
.. And the Suse gcc-c++ 3.3.3
http://www.linuxquestions.org/questi...2-a-797763/#12 > post # 12.


Edit some 'Makefile.in' :
otcl-1.0a8/, line 7 : CC = gcc-3.3
tclcl-1.0b13/, line 40 : CC = gcc-3.3
tclcl-1.17/, line 41 : CPP = g++-3.3
ns-2.26/ , line 36 : CC = gcc-3.3
ns-2.26/ , line 37 : CPP = g++-3.3
nam-1.11/, line 44 : CC = gcc-3.3 (Any nam can be used.)
nam-1.11/, line 45 : CPP = g++-3.3
tcl, tk : I don't remember.
..

Last edited by knudfl; 07-13-2010 at 05:32 AM.
 
Old 07-13-2010, 11:55 PM   #10
thinhtelecom
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
Smile

@ knudfl


I will try to install ns-2.26 on Redhat 9.0, again.

Now I simulate MAODV on Fedora 8 with ns-2.26. However, I have a problem when I run ns.tcl script, it informs an error that :

ns: _o194 aodv-join-group -2147483648:
(_o194 cmd line 1)
invoked from within
"_o194 cmd aodv-join-group -2147483648"
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 "_o194" line 2)
(SplitObject unknown line 2)
invoked from within
"_o194 aodv-join-group -2147483648"

I have searched my problem on the internet, but I cannot find out solution for this.
If possible, please show me the way to fix this problem.

Thanks a lot !
Regards,
Vo
Attached Files
File Type: txt ns.txt (1.4 KB, 37 views)
 
Old 07-14-2010, 01:15 AM   #11
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 # 10 , @thinhtelecom

This I remember :
The aodv patching and the scripts work OK on CentOS 3.9.
CentOS 3.9 is the long term supported free version of
Redhat 9, and is supported until Oct. 31, 2010.
..
 
Old 07-14-2010, 08:10 AM   #12
thinhtelecom
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Post # 10 , @thinhtelecom

This I remember :
The aodv patching and the scripts work OK on CentOS 3.9.
CentOS 3.9 is the long term supported free version of
Redhat 9, and is supported until Oct. 31, 2010.
..
I am using VMware 6.5 and Redhat 9.0. However, Redhat cannot connect to the internet.

Could you show me the way to access the internet ?
Thanks.
 
Old 07-14-2010, 08:27 AM   #13
thinhtelecom
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
@ thinhtelecom, post # 8.

Looking for trouble :
Use Redhat 9, released 2002, obsoleted 2004.
If you want to use it : make a complete install :
All development tools must be included.
( glibc-devel, gcc, gcc-c++, etc. etc. )

'ns-allinone-2.26' : Any Linux with gcc / g++ 3.3.3 is OK.
Like Suse 11.2, Fedora 12. Fedora requirements :
# yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel \
xorg-x11-proto-devel make automake autoconf libtool
.. And the Suse gcc-c++ 3.3.3
http://www.linuxquestions.org/questi...2-a-797763/#12 > post # 12.


Edit some 'Makefile.in' :
otcl-1.0a8/, line 7 : CC = gcc-3.3
tclcl-1.0b13/, line 40 : CC = gcc-3.3
tclcl-1.17/, line 41 : CPP = g++-3.3
ns-2.26/ , line 36 : CC = gcc-3.3
ns-2.26/ , line 37 : CPP = g++-3.3
nam-1.11/, line 44 : CC = gcc-3.3 (Any nam can be used.)
nam-1.11/, line 45 : CPP = g++-3.3
tcl, tk : I don't remember.
..
Please more specific about it. According your instructions, I have to edit "Makefile.in" which were located in ns-2.26 ?

Please provide more information about tcl, tk because I cannot install successfully with out them

Thanks !
 
Old 07-14-2010, 12:36 PM   #14
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
The instructions in post # 9 are for e.g. Fedora 12, not Redhat 9.

Just look into ns-allinone-2.26/ns-2.26/Makefile.in
etc. etc.

If any problems with tcl, tk :
ns-allinone-2.26/tcl8.3.2/unix/Makefile.in , line 229 : CC = gcc-3.3
ns-allinone-2.26/tk8.3.2/unix/Makefile.in , line 236 : CC = gcc-3.3

..
Redhat 9 / CentOS 3.x : No edits.
..

Last edited by knudfl; 07-14-2010 at 12:38 PM.
 
Old 07-15-2010, 10:57 AM   #15
thinhtelecom
LQ Newbie
 
Registered: Jul 2010
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The instructions in post # 9 are for e.g. Fedora 12, not Redhat 9.

Just look into ns-allinone-2.26/ns-2.26/Makefile.in
etc. etc.

If any problems with tcl, tk :
ns-allinone-2.26/tcl8.3.2/unix/Makefile.in , line 229 : CC = gcc-3.3
ns-allinone-2.26/tk8.3.2/unix/Makefile.in , line 236 : CC = gcc-3.3

..
Redhat 9 / CentOS 3.x : No edits.
..
The fact is that my Red hat 9 cannot access the internet, so what should I do to update some packages necessary. I'm a newbie, please help me more.

Thanks.
 
  


Reply

Tags
maodv, ns2, rh9



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
why am getting error ksh: syntax error: `fi' unexpected while running script deb4you Linux - Newbie 4 09-06-2008 08:37 AM
Error running blackbox: BScreen::BScreen: an error occured while querying the X se Niceman2005 Linux - Software 4 03-09-2005 09:14 PM
Error 219. Error running jifyboot during installation jfi Linspire/Freespire 10 12-14-2004 09:49 AM
Error when running Point2Play Nigh Unstoppabl Linux - Games 2 11-21-2004 04:45 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08: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