Linux - NewbieThis 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
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.
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.
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?
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)
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...
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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
..
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
..
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.