LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-20-2010, 12:27 PM   #1
Scofield
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Rep: Reputation: 3
Red face Problems in Installation of NS2.27 on Ubuntu 9.10


I have run through all the installation steps required for installation of NS2.27 onto my system. But I face following problems

Nam has been installed successfully.
ln: creating symbolic link `ns': File exists
ln: creating symbolic link `nam': File exists
Please compile your xgraph separately.
Please compile your gt-itm & sgb2ns separately.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5: /home/sawyer/ns-allinone-2.27/{bin,include,lib}
tk8.4.5: /home/sawyer/ns-allinone-2.27/{bin,include,lib}
otcl: /home/sawyer/ns-allinone-2.27/otcl-1.8
tclcl: /home/sawyer/ns-allinone-2.27/tclcl-1.15
ns: /home/sawyer/ns-allinone-2.27/ns-2.27/ns
nam: /home/sawyer/ns-allinone-2.27/nam-1.10/nam

but when I give it returns the following

sawyer@sawyer:~$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"


And when I click on to installation paths above tcl8.4.5,tk8.4.5,ns,nam does not open.


What may be the problem !!! .

Next is when I go for validation that is after giving the command


sawyer@sawyer:~/ns-allinone-2.27/ns-2.27$ ./validate

I get this

Test output agrees with reference output
All test output agrees with reference output.
*** ./test-all-rng
Tests: rngtest
Running test rngtest:
../../ns test-suite-rng.tcl rngtest QUIET
Test output agrees with reference output
All test output agrees with reference output.
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode


validate overall report: some tests failed:
./test-all-newreno ./test-all-red
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned on.


Please let me know wat all are the extra packages to be installed. bcoz I am using old version of Ns2 on Ubuntu9.10

Thank you,
Sawyer
 
Old 01-20-2010, 03:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Please do not start a new thread with the same subject.
You got an answer four days ago, and did not respond ..
http://www.linuxquestions.org/questi...9.10-782356/#3
.....
.....

QUOTE 1. : "I have run through all the installation steps
required for installation of NS2.27 .."
So please tell something about, what you actually did,
which method you followed ...
... and why you want to use ns-allinone-2.27 .
Your information will be appreciated, as hundred thousands
of members and guests use LQ as a knowledge base.

QUOTE 2. : The error "[code omitted because of length]"
EDIT :
http://www.linuxquestions.org/questi...31-a-801695/#3
...............About the patch 'tk-8.4-lastevent.patch'

Nam isn't that important, as it is a separate application,
used to show output from ns.
Either directly, or with the command 'nam nam.out'.
So any nam can be used, e.g. the one from ns-allinone-2.34 .

QUOTE 3 :
"Please let me know, what are the extra packages to be installed"
The answer is : none.

QUOTE 4 :
" validate overall report : some tests failed "
Your result looks as expected. I will return my
' ./validate ' result tomorrow.
.....

Last edited by knudfl; 04-19-2010 at 01:02 AM.
 
Old 01-21-2010, 05:35 AM   #3
Scofield
LQ Newbie
 
Registered: Jan 2010
Posts: 14

Original Poster
Rep: Reputation: 3
Smile Thanks for the help

Firstly I am using NS2.27 version because it supports LEACH protocol for Wireless Sensor Networks. The Implementation of LEACH was done on NS2.27.

If u have any idea, can you please explain the steps for the installation of LEACH onto NS2.27. I have the mit.tar.gz package required for LEACH protocol.

I just installed the nam of ns-allinone2.34 and it is working fine(including ns2).

I am able to execute nam filename.nam with simulations..

But I have one doubt....what the use of tcl8.4.5, tk8.4.5.and you told that they should be removed.

Thanks for the reply,
Sawyer
 
Old 01-21-2010, 02:25 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Quote:
But I have one doubt..
..what the use of tcl8.4.5, tk8.4.5.
and you told that they should be removed.
You mean the reason I used tcl / tk version 8.4.18
for ns-2.27 ?
That's because older tcl / tk is difficult to configure
on Debian / Ubuntu systems. They also failed this time. ( ./install ).
And tcl / tk version 8.4.18 works perfect, you will see
that below from the validate result.

Or do you mean removing tcl / tk 8.4.19 from Ubuntu ?
8.4.19 is the version in the package manager ...
If removing those : They can be reinstalled after
buildig ns2.
8.4.19's usually work OK, if they are used by e.g. ' ns '.

.....
.....

The result of ./validate , ns-2.27 :
Code:
validate overall report: some tests failed:
     ./test-all-red
"some tests failed" is only one.
Probably not because of failing, but I think, I remember
an error in one of the test scripts, making a test impossible

As you can see, this a better result than yours,
but if you doesn't use "all-newreno" it has little importance.
.....
.....

LEACH protocol for Wireless Sensor Networks :
Will come back to that, if I manage to use it.
.....

Last edited by knudfl; 01-21-2010 at 02:27 PM.
 
Old 03-14-2013, 04:37 PM   #5
doussa
LQ Newbie
 
Registered: Feb 2013
Posts: 29

Rep: Reputation: Disabled
Unhappy

Hi everybody,
Can anyone help me to know how to get the trace file and how to generate graphs appropriate to leach files,because I know that leach.energy ,leach.data and leach.alive files will be used to generate these graph but I don't know how?
pleeeeeease help me.
thx an advance.
 
Old 03-14-2013, 04:51 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
# 5. http://www.linuxquestions.org/questi...1&d=1363277097

There is an example here, post # 425 (The Pegasis/leach adds were used)
http://www.linuxquestions.org/questi...68/page29.html

Pegasis links, post # 6 here ..
http://www.linuxquestions.org/questi...ocol-937219/#6

-
 
Old 03-14-2013, 06:06 PM   #7
doussa
LQ Newbie
 
Registered: Feb 2013
Posts: 29

Rep: Reputation: Disabled
Red face

Quote:
Originally Posted by knudfl View Post
# 5. http://www.linuxquestions.org/questi...1&d=1363277097

There is an example here, post # 425 (The Pegasis/leach adds were used)
http://www.linuxquestions.org/questi...68/page29.html

Pegasis links, post # 6 here ..
http://www.linuxquestions.org/questi...ocol-937219/#6

-
sorry,but I have not understood what I must to do ?
 
Old 03-15-2013, 03:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
# 7.
Quote:
I have not understood what I must to do ?
There is nothing that you must do.

But you can add the Pegasis stuff to an ns-2.xx (ns2.34), if you want to.

Suggest : Set up another ns-allinone-2.xx for Pegasis.
It's a complete LEACH + Pegasis, AFAIK.
A new Makefile.in is included in the patch package.

-

Last edited by knudfl; 03-15-2013 at 05:32 AM.
 
  


Reply

Tags
leach, 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2 installation ds_priyaa Fedora 2 05-28-2008 02:23 AM
installation on ns2 on windows swift_a2002 Linux - Software 1 02-27-2008 05:14 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM
ns2 installation pranoti Linux - Software 2 06-11-2007 12:45 AM
ns2-installation in suse 10.1 D.Mariselvam Linux - Software 1 05-23-2007 04:35 PM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration