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.
Setting slot size to 0.001124
num_nodes is set 84
values-file lookup failed
(_o20 cmd line 1)
invoked from within
"_o20 cmd values-file salida.tr"
invoked from within
"catch "$self cmd $args" ret"
(procedure "_o20" line 2)
(SplitObject unknown line 2)
invoked from within
"$mac_($i) values-file $valuefile"
("for" body line 6)
invoked from within
"for {set i 0} {$i < $numNodes } {incr i} {
set node_($i) [$ns_ node $i]
$node_($i) random-motion 0 ;# disable random motion
$god_ new_node $nod..."
(file "multiHopTopoGen.tcl" line 1)
invoked from within
"source.orig multiHopTopoGen.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
(procedure "source" line 12)
invoked from within
"source "multiHopTopoGen.tcl""
(file "simZMAC.tcl" line 99)
Looks like it could be an advantage to have two (more?) installs of ns-2.26.
( Make a backup of the binary 'ns' as 'ns-orig', if you are going to reuse the ns-2.26.)
NS-2.26 is first used with DRAND. If you then afterwords patch the same
install with ZMAC, you will not be able to go back and do more DRAND work.
A) The DRAND ns-2.26. http://www4.ncsu.edu/~rhee/export/zm...rand/drand.htm
tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch
cd ns-allinone-2.26/ns-2.26/ && tar xvf drandNS2.tar.gz
Then copy the new files ns-packet.tcl packet.h mac-802_11.cc cmu-trace.cc
to their destinations.
And the new Makefile.in : cp -a drand-Makefile.in.txt Makefile.in
cd ../ && export CC=gcc34 CXX=g++34 && ./install
And the "DRAND ns" binary is created.
Suggest : Make a backup : cd ns-2.26/ && cp ns ns-drand
B) The ZMAC ns-2.26 http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm
tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch
cd ns-allinone-2.26/ns-2.26/ && tar xvf zmac.tar.gz
cp zmac/* mac/ http://www4.ncsu.edu/~rhee/export/zm...mobilenode.tcl
>>> cp -a ns-mobilenode.tcl tcl/lib/
And the new Makefile.in : cp -a zmac-Makefile.in.txt Makefile.in
Delete the Makefile, and run 'make clean', if this is an ns-2.26 reuse.
cd ../ && export CC=gcc34 CXX=g++34 && ./install
Result : The "ZMAC ns" binary.
A backup : cd ns-2.26/ && cp ns ns-zmac
...
Please tell me what's the purpose of the attachment
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 40
The attached files are zmac-Makefile.in.txt, drand-Makefile.in.txt.
A Makefile.in is used by configure to create "Makefile".
That's also what ./install is doing : 1) Running ./configure
in the applications, 2) creating Makefile's, 3) running 'make'.
The purpose of attaching "Makefile.in" : Then you don't have to write it yourself.
The attached files are zmac-Makefile.in.txt, drand-Makefile.in.txt.
A Makefile.in is used by configure to create "Makefile".
That's also what ./install is doing : 1) Running ./configure
in the applications, 2) creating Makefile's, 3) running 'make'.
The purpose of attaching "Makefile.in" : Then you don't have to write it yourself.
.
I am not so clever to understand it .and I can see makefile.in in ns-allinone-2.26/ns-2.26 and I think there is only one makefile in ns2.26 .please help me and I am puzzled by the zmac addition process ,by the way I installed ns2.26 in windowsxp+cygwin.It is very kind of you ,thank you .
Thank you very much, knudfl. I have installed zmac and Drand in ns2.26 successfully, but I don’t know what should I do next? To analysis out.tr or salida.tr? I have simulated s-mac ,and I used AWK language to analysis the out.tr and plotted all kinds of curves,but the out.tr of zmac is different and I do not know what should I do next, please give me a instruction, best wishes to you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.