LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-15-2012, 04:35 AM   #1
pvbhat
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
leach on ns2.27


While implimenting leach on ns2.27 with Fedora 8 platform I am getting the following error after ./install

g++: –I./mit/uAMPS: No such file or directory
make: *** [gen/ns_tcl.o] Error 1
Ns make failed!

Hence I removed the following line from Makefile.in and compiled

-I./mit/rca –I./mit/uAMPS


Then there was no major error But few warnings.

Hence I tried to run sample program ./test as given below.
I got some warnings as given below.
Please help me to run Leach sucessfully

[root@localhost ns-2.27]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

INITIALIZE THE LIST xListHead
warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

warning: no class variable Phy/WirelessPhy::alive_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::Efriss_amp_

warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_

warning: no class variable Phy/WirelessPhy::EXcvr_

warning: no class variable Phy/WirelessPhy::sleep_

warning: no class variable Phy/WirelessPhy::ss_

warning: no class variable Phy/WirelessPhy::dist_

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...
./test: line 5: ./leach_test: No such file or directory
[
 
Old 07-15-2012, 04:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
–I./mit/uAMPS: No such file or directory
Better check that the file is present : Must be.
>> ns-allinone-2.27/ns-2.27/mit/uAMPS/

And : No reason to remove the line in "Makefile.in".
May cause other errors. Line 71 : -I./mit/rca –I./mit/uAMPS
The correct Makefile.in is attached here, post # 5
http://www.linuxquestions.org/questi...otocol-933441/

About test : Please read post # 6 here (The "test" script has a typo)
http://www.linuxquestions.org/questi...2-27-a-785379/

.
 
1 members found this post helpful.
Old 07-16-2012, 04:01 AM   #3
jamesjiangqian
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
How to send user data between wireless nodes in ns2, please?
 
  


Reply

Tags
ns2


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
running leach on ns2.34 Stanley33 Linux - Software 76 12-06-2015 11:21 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
Leach on ns2.34 linux_ubuntu Linux - Newbie 2 10-04-2011 02:32 AM
LEACH on NS2 deepa_2111 Linux - Newbie 1 04-05-2011 07:53 PM
leach in ns2.33 hayet Linux - Newbie 2 03-18-2011 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 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
Open Source Consulting | Domain Registration