LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2014, 10:59 AM   #721
mittal_saurabhin
Member
 
Registered: Jul 2010
Posts: 45

Rep: Reputation: 0

make
g++-4.3 -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -DMIT_uAMPS -I. -I. -I/opt/ns-allinone-2.34/tclcl-1.19 -I/opt/ns-allinone-2.34/otcl -I/opt/ns-allinone-2.34/include -I/opt/ns-allinone-2.34/include -I/opt/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -I./mit/rca -I./mit/uAMPS -o tools/random.o tools/random.cc
make: g++-4.3: Command not found
make: *** [tools/random.o] Error 127


while using make command I got above given error....... please help
 
Old 02-06-2014, 03:37 AM   #722
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
@deepa
hi deepa my problem got solved..thanx for ur help..can u tell me how nodeToBSDist function which is present in extras.tcl is called from ns-leach.tcl?i mean is there any linkage between these tcl files? if yes from where i can get that?
 
Old 02-06-2014, 03:47 AM   #723
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Please I need your help to run MTE

what changes can I made at Leach_test file , is num_cluster should be 0 or what i need to change before run MTE????

thanks,,,
 
Old 02-06-2014, 05:33 AM   #724
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Quote:
Please I need your help to run MTE

what changes can I made at Leach_test file , is num_cluster should be 0 or what i need to change before run MTE????

thanks,,,
I made these changes
alg=mte
num_cluster=0
at this file tcl/mobility/mte.tcl
I change source $env(uAMPS_LIBRARY)/ns-mte.tcl by source mit/uAMPS/ns-mte.tcl

the simulation run and simulation files created but at leach.out i found the file full of these


At 290:
Total Energy = 113.2889240759787
Total Data = 0
Total Alive = 87

COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
 
Old 02-06-2014, 07:14 AM   #725
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 720 , @mittal_saurabhin
Repeat Repeat : Which OS ? a) $ uname -m b) $ cat /etc/issue

gcc / g++ 4.3 worked for a short time 3 years ago, Ubuntu 10.04 / Ubuntu 10.10,
... until both OS's were updated.
Conclusion : gcc-4.3 / g++-4.3 not at all relevant.
! That's why the text says "export CC=gcc41 CXX=g++41 && ./install"
→ → ! Read the leach posts http://www.linuxquestions.org/questions/tags/leach/ ,,,
http://www.linuxquestions.org/questions/tags/pegasis/

g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 : Looks like Ubuntu 13.10.
If you have the right OS = i686 / 32bits, use these two packages :
gcc41-compat-4.1.2-ubuntu1210_i386.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing
g++41-compat-4.1.2_i386.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing
... to be installed with your 'Package Installer'.
Then reboot, and the new gcc41 / g++41 will work. Tested with Ubuntu 13.10 / ns2.

-

Last edited by knudfl; 02-06-2014 at 08:44 AM.
 
Old 02-06-2014, 09:00 AM   #726
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
The "nodeToBSDist" function will be used in the function where the CH sends data to the BS.
I do not remember the function name, but you should be able to figure out when you follow the code flow.

If you can, please try to figure out these kind of things yourself. It is your project, and you need to learn these things by yourself.
We are all here to help, but these kind of questions seem to indicate that you are not putting in the effort to understand the code.

To answer your second question, "nodeToBSDist" can be called by any node from any point in the code. Understand the function's parameters, and you can call it from wherever you like.

Quote:
Originally Posted by keepwalking123 View Post
@deepa
hi deepa my problem got solved..thanx for ur help..can u tell me how nodeToBSDist function which is present in extras.tcl is called from ns-leach.tcl?i mean is there any linkage between these tcl files? if yes from where i can get that?

Last edited by deepa_2111; 02-06-2014 at 09:33 AM.
 
Old 02-06-2014, 09:02 AM   #727
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
Hmm .. I am not sure if MTE would run. I remember reading so somewhere. Can you please google and see ?

[Edit]:
Refer this link : http://ns2.blogspot.ca/
It describes the issue.

Quote:
Originally Posted by eng_mohamed_sc View Post
Please I need your help to run MTE

what changes can I made at Leach_test file , is num_cluster should be 0 or what i need to change before run MTE????

thanks,,,

Last edited by deepa_2111; 02-06-2014 at 05:14 PM. Reason: Edited to add the link.
 
1 members found this post helpful.
Old 02-06-2014, 11:12 AM   #728
keepwalking123
Member
 
Registered: Jan 2014
Posts: 52

Rep: Reputation: Disabled
@ deepa
hey sry..actually i did my changes using that function correctly..and it works perfect..my question was wrong..i wanted to say that though that function is in other tcl file..hw ns-leach.tcl get correct path of that tcl file without specifying path in code..
 
Old 02-06-2014, 05:11 PM   #729
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
You don't have to specify the path as you've already specified it in uamps.tcl.

Quote:
Originally Posted by keepwalking123 View Post
@ deepa
hey sry..actually i did my changes using that function correctly..and it works perfect..my question was wrong..i wanted to say that though that function is in other tcl file..hw ns-leach.tcl get correct path of that tcl file without specifying path in code..
 
Old 02-06-2014, 05:12 PM   #730
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
To all users having a problem with LEACH installation, please refer::

http://ns2.blogspot.ca/

This is how I solved most of the problems in the LEACH code.

 
1 members found this post helpful.
Old 02-07-2014, 03:36 AM   #731
eng_mohamed_sc
Member
 
Registered: Jul 2013
Posts: 49

Rep: Reputation: Disabled
Quote:
Hmm .. I am not sure if MTE would run. I remember reading so somewhere. Can you please google and see ?

[Edit]:
Refer this link : http://ns2.blogspot.ca/
It describes the issue.
it is run after I made these changes at Leach_test file
alg=mte
num_cluster=0
and at this file tcl/mobility/mte.tcl
I change source $env(uAMPS_LIBRARY)/ns-mte.tcl by source mit/uAMPS/ns-mte.tcl

the simulation run and simulation files created but at leach.out i found the file full of these


At 290:
Total Energy = 113.2889240759787
Total Data = 0
Total Alive = 87

COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
CAPTURE!!!!
CAPTURE!!!!
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
COLLISION!!!! rx_state_ = 4096
 
Old 02-07-2014, 09:59 AM   #732
mittal_saurabhin
Member
 
Registered: Jul 2010
Posts: 45

Rep: Reputation: 0
#725 @knufdl

saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34$ uname -m
i686
saurabh@saurabh-Satellite-C850:~/ns-allinone-2.34$ cat /etc/issue
Ubuntu 13.10 \n \l

please help what to do now
 
Old 02-07-2014, 10:33 AM   #733
mittal_saurabhin
Member
 
Registered: Jul 2010
Posts: 45

Rep: Reputation: 0
@knudfl

make
g++-4.3 -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -DMIT_uAMPS -I. -I. -I/opt/ns-allinone-2.34/tclcl-1.19 -I/opt/ns-allinone-2.34/otcl -I/opt/ns-allinone-2.34/include -I/opt/ns-allinone-2.34/include -I/opt/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -I./mit/rca -I./mit/uAMPS -o tools/random.o tools/random.cc
make: g++-4.3: Command not found
make: *** [tools/random.o] Error 127

I got above given error while using make command
 
Old 02-07-2014, 10:44 AM   #734
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Post # 733, @mittal_saurabhin.

! There is no gcc/g++ 4.3 ! Read the answer to you, post # 725 :
gcc / g++ 4.3 worked for a short time 3 years ago, Ubuntu 10.04 / Ubuntu 10.10,
... until both OS's were updated.
Conclusion : gcc-4.3 / g++-4.3 not at all relevant.
! That's why the text says "export CC=gcc41 CXX=g++41 && ./install"
→ → ! Read the leach posts http://www.linuxquestions.org/questions/tags/leach/ ,,,
http://www.linuxquestions.org/questions/tags/pegasis/
.
-
 
Old 02-08-2014, 03:04 AM   #735
michou_87
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
@deepa
Hello, when I simulate pegasis in ns2 I got this result, I don't know why no dead node and no data received.
At 10: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 20: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 30: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 40: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 50: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 60: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 70: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 80: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 90: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 100: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100
please help me
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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