how to implement leach in ns2.34 in fedora13
can u please guide me in implementing LEACH in ns2.34 (fedora-13)
Welcome to LQ.
# yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel
cd ns-allinone-2.34/tk8.4.18/ &&
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install
And LEACH, post # 5 here
Thank you for the reply mail..
In the procedure for installing of LEACH
/opt/ns-allinone-2.34/ns-2.34 but my path is cd usr/local/ns-allinone-2.34/ns-2.34/
while proceeding with the step - "leach-setup.sh"
i found some error in Location
problem in Makefile
Sorry to disturbe u again
i have done all the steps.. But i was not able to change the makefile due to deny in the permission...
pl guide me in solving the problem..
(answer deleted - oops, I was in the wrong thread...)
You left out the "/" at the beginning of "usr/local/ns-allinone-2.34/ns-2.34/" Is that what you mean?
The MayTamer instructions : Her path is /opt/.
If you use /opt/ , do 'su -', for editing the Makefile.
my ns get crashed after "make clean" while trying to implement the Leach on ns2.34(fedora13)
kindly help me..
Known issues: There is one: ns-allinone-2.34/ns-2.34/trace/cmu-trace.h
See posts # 29, # 47, # 49 in the "Instuction thread"
The correct cmu-trace.h : post #49.
error after Make
trace/trace.cc: In static member function ‘static int Trace::get_seqno(Packet*)’:
trace/trace.cc:190: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:196: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:196: error: expected ‘;’ before ‘t’
trace/trace.cc:200: error: ‘t’ was not declared in this scope
trace/trace.cc:200: error: ‘PT_UDP’ was not declared in this scope
trace/trace.cc:200: error: ‘PT_EXP’ was not declared in this scope
trace/trace.cc:201: error: ‘PT_PARETO’ was not declared in this scope
trace/trace.cc:203: error: ‘PT_RAP_DATA’ was not declared in this scope
trace/trace.cc:203: error: ‘PT_RAP_ACK’ was not declared in this scope
trace/trace.cc:205: error: ‘PT_HTTP’ was not declared in this scope
trace/trace.cc:205: error: ‘PT_FTP’ was not declared in this scope
trace/trace.cc:206: error: ‘PT_XCP’ was not declared in this scope
trace/trace.cc:208: error: ‘PT_TFRC’ was not declared in this scope
trace/trace.cc:210: error: ‘PT_TFRC_ACK’ was not declared in this scope
trace/trace.cc:190: warning: unused variable ‘th’
trace/trace.cc: In member function ‘virtual void Trace::format(int, int, int, Packet*)’:
trace/trace.cc:221: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:229: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:229: error: expected ‘;’ before ‘t’
trace/trace.cc:230: error: ‘packet_info’ was not declared in this scope
trace/trace.cc:230: error: ‘t’ was not declared in this scope
trace/trace.cc:290: error: ‘PT_SCTP’ was not declared in this scope
trace/trace.cc: In member function ‘virtual void DequeTrace::recv(Packet*, Handler*)’:
trace/trace.cc:510: error: ‘access’ is not a member of ‘hdr_cmn’
trace/trace.cc:515: error: ‘packet_t’ was not declared in this scope
trace/trace.cc:515: error: expected ‘;’ before ‘t’
trace/trace.cc:516: error: ‘packet_info’ was not declared in this scope
trace/trace.cc:516: error: ‘t’ was not declared in this scope
make: *** [trace/trace.o] Error 1
I get this error while i give "make"
pl help me in clearing this error..
Fedora 13 :
gcc --version : 4.4.5 ; g++ --version : 4.4.5 20101112 (Red Hat 4.4.5-2)
Be absolutely sure, that you are using this version.
Suggest : Start from scratch in /home/<name>/ns-allinone-2.34/ .
And use the script "leach-HOME-setup234.sh" : Then all "file changes"
will work automatically. No manual changing Makefile etc. etc.
( Except cmu-trace.h : Use the file from post #9 ).
./configure && make clean && make ; su ; make install && exit && ./test : LEACH works.
charanya also be aware that fedora 13 IS PAST it's End Of Life - it is no longer supported
Fedora 13 has NOT had a update in 5 months and NEVER will !
fedora 15 is the current and in a few weeks fedora 16 will be current
it is strongly advised that if you are going to use fedora then you STAY current
fedora releases a new version every 6 months .
thanks a lot knudfl...
ur guidance was soo helpful for me to complete the implementation of leach...
thanks for sparing time for my queries..
i am using fedora-9 and i want to implement leach protocol in ns2.34 can u plz help me in providing the code and for generating tcl scripts
Post # 14, @ ayaan : Welcome to LQ.
Code and instructions, as mentioned above in post #7
http://www.linuxquestions.org/questi...34-a-870368/#5 by @MayTamer
And please read all the above posts carefully.
Especially posts #9, #11 : Except the Fedora 13 stuff.
Fedora requirements : # yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel \
gcc-c++ compat-gcc-34-c++ make automake autoconf libtool
P.S. : Tcl code is not something, that you generate.
It is plain text : Use and read some examples,
then you will hopefully find out how to write your own example.tcl .
NS2 tcl template http://www.linuxquestions.org/questi...33-a-731678/#2
And / or read the tcl documentation : http://www.tcl.tk/doc/
|All times are GMT -5. The time now is 07:53 PM.|