LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-25-2014, 08:01 AM   #1
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Unhappy error while executing leach in ns2.34


Hi ,

i am using ubuntu 12.04lts,


can anybody help me on installing leach in ns2.35.


thanks

Alagappan

Last edited by pon; 08-27-2014 at 02:47 AM. Reason: seeking the solution soon
 
Old 08-25-2014, 08:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
*

See http://www.linuxquestions.org/questi...94#post5226794
 
1 members found this post helpful.
Old 08-25-2014, 02:47 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
Quote:
can anybody help me on installing gcc-4.3 in ns-2.34.
you do not install a older ( the current is 4.9) gcc compiler IN "network sim."
you install it into the OPERATING SYSTEM
 
Old 08-26-2014, 03:31 AM   #4
pon
Member
 
Registered: Aug 2014
Posts: 77

Original Poster
Rep: Reputation: Disabled
Mr.John VV

I tried to install in ubuntu 12.04LTS by sudo apt-get install gcc-4.3

showing err like as follows
E: Package 'gcc-4.3' has no installation candidate.
 
Old 08-27-2014, 02:53 AM   #5
pon
Member
 
Registered: Aug 2014
Posts: 77

Original Poster
Rep: Reputation: Disabled
Hi knudfl ,

i followed the procedure as you said in post #2.
i followed the procedure in foolowing site post #2.

http://www.linuxquestions.org/questi...-4175504301/#2

and i changed the path file in uAMPS.tcl as mentioned in following link post #56.
http://www.linuxquestions.org/questi...ml#post4357683


i gone through all steps you mentioned there,
when i command ./test and sh test i got following in terminal.
Quote:
chase@chase-desktop:~/ns234/ns-allinone-2.34/ns-2.34$ ./test
num_nodes is set 3
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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
but when i run ./test i am getting following error in pegasis.err file
Quote:
couldn't read file "/home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-pegasis.tcl": no such file or directory
while executing
"source.orig /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-pegasis.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 /home/tomas/ns-allinone-2.34/ns-2.34/mit/uAMPS/ns-pegasis.tcl"
(file "tcl/mobility/pegasis.tcl" line 11)
invoked from within
"source.orig tcl/mobility/pegasis.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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
Moreover, i am not finding any file named leach.err , leach.out,
but there are files names pegasis.err and pegasis.out.

On execution i found there is error in path /home/tomas/...

but i dont know , where and how to change that location information(pathfile)

Assist Me , pls

Thanks in Advance

Pon

Last edited by pon; 08-27-2014 at 05:38 AM. Reason: want to provide clear information.
 
Old 08-27-2014, 01:25 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 5 .
Quote:
couldn't read file "/home/tomas....
See post #870 here http://www.linuxquestions.org/questi...68/page58.html
 
  


Reply

Tags
gcc-4.3, leach, ns 2


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
how to install gcc compiler mallesh Linux - Newbie 3 06-30-2011 11:22 AM
How to install gcc and g++ compiler... Carunkumar SUSE / openSUSE 3 01-03-2011 11:48 PM
Can't install GCC compiler!??!?! MickBurke Linux - Newbie 3 03-07-2005 03:53 PM
why i can't install gcc or any other C compiler? HoreC Debian 3 11-21-2004 12:51 PM
GCC Compiler Install Alpha-01 Linux - Newbie 6 10-03-2004 10:48 AM


All times are GMT -5. The time now is 03:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration