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 04-06-2015, 12:13 AM   #931
trunghieuet
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled

Dir sir . Please, help me this "leach.err"...i had ran ./test and my leach.err not show "INITIALIZE THE LIST xListHead SORTING LISTS ...DONE!" anymore


couldn't read file "/ns-2.34/tcl/mobility/leach.tcl": no such file or directory
while executing
"source.orig /ns-2.34/tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /ns-2.34/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
 
1 members found this post helpful.
Old 04-06-2015, 05:28 AM   #932
banerjee
Member
 
Registered: Oct 2014
Posts: 32
Blog Entries: 1

Rep: Reputation: Disabled
ns 2.34 installation error on ubuntu 12.04.3

following error occurred while installing ns2.34 on ubuntu 12.04

compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting ...

Last edited by banerjee; 04-06-2015 at 05:29 AM. Reason: spelling mistake
 
Old 04-06-2015, 05:49 AM   #933
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #932.

The 32bits (i686) Ubuntu 12.04 :
$ sudo apt-get update && sudo apt-get install g++-4.4
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
$ https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

.... Besides that, this has been answered numerous times.
Please read :
. http://www.linuxquestions.org/questions/tags/pegasis/
. http://www.linuxquestions.org/questions/tags/leach/

-
 
Old 04-06-2015, 05:59 AM   #934
banerjee
Member
 
Registered: Oct 2014
Posts: 32
Blog Entries: 1

Rep: Reputation: Disabled
tk8.4.18 make failed! Exiting ...

Quote:
Originally Posted by knudfl View Post
Re #932.

The 32bits (i686) Ubuntu 12.04 :
$ sudo apt-get update && sudo apt-get install g++-4.4

-
I tried this several times. but came accross the same error

/home/kgecit/sayan/ns-allinone-2.34/tk8.4.18/unix/../generic/tk.h:81: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting ...
For problems with Tcl/Tk

please help
 
Old 04-06-2015, 07:32 AM   #935
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #934.

You failed to read any ns2 posts ?

Install the ns2 build prerequisites before you start building any ns2 !
Code:
$ sudo apt-get update && sudo apt-get install g++ g++-4.4 automake libtool libxmu-dev
 
Old 04-06-2015, 10:00 AM   #936
trunghieuet
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
please help me , Mr.Knudfl...My project is so overdue, and no one can help me even my supervisor...Sorry for my english...Thank you
 
Old 04-06-2015, 12:27 PM   #937
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #936, @trunghieuet.

Like #933, you will have to read the latest posts, say 5 months from :
http://www.linuxquestions.org/questions/tags/pegasis/

If you are using an OS which will work with leach :
In /home/name/ : $ tar xvf leach-test__Ubuntu12.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
Code:
$ cd 9tmp/ns-allinone-2.34/ns-2.34/
$ export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test
 
Old 04-07-2015, 12:15 PM   #938
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
sir knudfl, i have a problem with code
member still send a data to CH when CH is dead.
i think if CH dead member must cant send any data to CH righ?
 
Old 04-09-2015, 11:28 AM   #939
tuongpx
LQ Newbie
 
Registered: Feb 2015
Posts: 8

Rep: Reputation: Disabled
Hi emprit,

Thanks for your support.

But I have another issue when I run "./test".

I already run "./test" command but I cannot get any data on "leach.out", I checked "leach.err" file and see that have error.
Can you help to resolve this issue.

./test command

Quote:
tuongpx@ubuntu:~/ns-allinone-2.34/ns-2.34$ ./test
num_nodes is set 101
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...
tuongpx@ubuntu:~/ns-allinone-2.34/ns-2.34$
Output file

Quote:
couldn't read file "../lib/ns-bsnode.tcl": no such file or directory
while executing
"source.orig ../lib/ns-bsnode.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source ../lib/ns-bsnode.tcl"
(file "tcl/ex/wireless.tcl" line 196)
Thanks so much.
 
Old 04-10-2015, 07:30 AM   #940
emprit
Member
 
Registered: Feb 2015
Location: jl. bogor 1 no 91, malang, jawa timur, indonesia
Distribution: any linux
Posts: 81

Rep: Reputation: Disabled
i never found any error like that, but i can read that error because ur script want open file ns-bsnode.tcl, try search source ../lib/ns-bsnode.tcl then change it with current location file ns-bsnode.tcl.

example : source /home/student/ns-allinone-2.34/ns-2.34/tcl/lib/ns-bsnode.tcl
 
Old 04-13-2015, 03:18 AM   #941
ghadghoud
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Hello
i started working on leach these days . I want to undrestand and see how it works
but i can't know how to do it till now becuse i can't find nam files ( i can't see anything to undrestand)..
Can any body help me and tell me how to do exactly ? Which files should i modify and how to plot what leach do ?
Thank you
 
Old 04-13-2015, 03:47 AM   #942
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #941, @ghadghoud.

Very simple : Leach does not support NAM.

Visualizations :
$ xgraph leach.alive.txt
$ xgraph leach.data.txt
$ xgraph leach.energy.txt
$ xgraph Distance.0.txt , etc.
$ xgraph TDMAschedule.220.txt , etc. (Not all TDMAschedule.**.txt are usable)


-

Last edited by knudfl; 04-13-2015 at 03:50 AM.
 
Old 04-13-2015, 04:57 AM   #943
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
Hello,
I am working on leach routing protocol in ns2.34 on ubuntu 10.04.now as far as my thesis is concerned i have to do hello flooding attack on leach but i am not getting how to do it. Please help me please.
Thanks in advance.
 
Old 04-13-2015, 08:01 AM   #944
ghadghoud
LQ Newbie
 
Registered: Apr 2015
Posts: 11

Rep: Reputation: Disabled
Thank you for your response @knudfl
I can't find the leach.out
in the leach.err , i have this :
mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
Why i can't find the leach.out ?
Thank you
 
Old 04-13-2015, 09:42 AM   #945
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,706

Rep: Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294Reputation: 3294
Re #944.

ns-allinone-2.34/ns-2.34/mit/leach_sims/leach.out

Examples, leach_sims/ :
leach_sims__2014.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing
leach_sims_03.2015.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
  


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 11:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration