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 All;
thank you knudfl
actually i checked each line of resulted grep command and it seems ok for my ns version 2.29
when i re-compile ns2 after adding cmu-trace.cc
ns-allinone-2.29/ns-2.29$
./configure
make clean
make
make install <<<< give me error
Quote:
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
so i change directory to ns-allinone-2.29$ ./install
and worked ok
does (./install) in main directory compensate for (make install) in ns-2.29 directory
thanks in advance ..
i really appreciate your help..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Re #3.
Quote:
make install <<<< give me error
The word error doesn't appear : No error.
... You are looking at a normal 'make install' output.
Please check the result with $ ls /usr/local/bin/ns*
And : $ which ns
And : $ ns
About 'make install' : I guess you mean 'sudo make install' ? Or su ? If you aren't already running as root.
And no. $ ./install isn't doing 'make install' in ns-2.29/.
fatma@ubuntu:~/Desktop/ns-allinone-2.29/ns-2.29$ sudo make install
[sudo] password for fatma:
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
Q3) what parameters do i change in tcl example to decrease energy value in resulted trace
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Re #1.
About newtrace.
1) Did you remember cmu-trace.h ?
Code:
$ cd trace/
$ grep -in -A2 -B4 newtrace *.h
cmu-trace.h-104- PacketTracer();
cmu-trace.h-105- virtual ~PacketTracer();
cmu-trace.h-106- void setNext(PacketTracer *next);
cmu-trace.h-107- PacketTracer *getNext();
cmu-trace.h:108: int format_unknow(Packet *p, int offset, BaseTrace *pt_, int newtrace);
cmu-trace.h-109- protected:
cmu-trace.h:110: virtual int format(Packet *p, int offset, BaseTrace *pt_, int newtrace) = 0; //return 0 if the packet is unknown
cmu-trace.h-111- PacketTracer *next_;
cmu-trace.h-112-};
--
cmu-trace.h-125- char tracename[MAX_ID_LEN + 1];
cmu-trace.h-126- int nodeColor[MAX_NODE];
cmu-trace.h-127- int tracetype;
cmu-trace.h-128- MobileNode *node_;
cmu-trace.h:129: int newtrace_;
cmu-trace.h-130-
cmu-trace.h-131- //<zheng: ns 2.27 removed the following part, but we need it to control the broadcast radius>
2) Please be aware that some (mac)protocols are still / can be : old trace by default in the latest ns2 versions.
So please always add the newtrace setting in the simulations.tcl ( $ns_ use-newtrace ) if you want "new".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.