LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2015, 02:20 AM   #1
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Rep: Reputation: Disabled
problem with mannasim after install leach on ns2.34


hi
I install ns2.34 with mannasim correctly.
but after install leach ns doesnt work.
erorr is:
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
while executing

What is the problem?

Last edited by SAHO; 04-08-2015 at 02:22 AM.
 
Old 04-08-2015, 02:32 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
Welcome to LQ.

! Mannasim and LEACH cannot be added to the same ns-2.34 .

Just setup another ns-allinone-2.34 for LEACH :
/home/<name>/mannasim/ns-allinone-2.34/ (for mannasim)
/home/<name>/ns-allinone-2.34/ ( for Leach ).

You can have as many ns-allinone-2* as you want, installed at the same time. But do not add any *PATH text to .bashrc : Never required.


-
 
Old 04-08-2015, 02:40 AM   #3
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

! Mannasim and LEACH cannot be added to the same ns-2.34 .

Just setup another ns-allinone-2.34 for LEACH :
/home/<name>/mannasim/ns-allinone-2.34/ (for mannasim)
/home/<name>/ns-allinone-2.34/ ( for Leach ).

You can have as many ns-allinone-2* as you want, installed at the same time. But do not add any *PATH text to .bashrc : Never required.


-
tnx.
pl explain more.I didnt understand what should I do?
LEACH with out mannasim doesnt wor!!!
 
Old 04-08-2015, 02:48 AM   #4
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

! Mannasim and LEACH cannot be added to the same ns-2.34 .

Just setup another ns-allinone-2.34 for LEACH :
/home/<name>/mannasim/ns-allinone-2.34/ (for mannasim)
/home/<name>/ns-allinone-2.34/ ( for Leach ).

You can have as many ns-allinone-2* as you want, installed at the same time. But do not add any *PATH text to .bashrc : Never required.


-
ns2.34 PATH :/home/saho/nss/ns-allinone-2.34/ns-2.34
mannasim PATH:/home/saho/nss/ns-allinone-2.34/ns-2.34/mannasim

echo $PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
tnx
 
Old 04-08-2015, 03:40 AM   #5
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
Re #3, #4.

! Please do not quote entire posts ! A "one word reference" will do.
Quote:
LEACH with out mannasim doesnt work
What do you mean ?
1) LEACH without mannasim doesn't work ?
2) LEACH with mannasim out doesn't work ?

Repeat : There is no chance that you can add Leach to a mannasim patched ns-2.34.

Setting up two times ns-allinone-2.34
a) /home/saho/mannasim/ns-allinone-2.34/ (for mannasim)
b) /home/saho/ns-allinone-2.34/mit/ ( The MIT Leach.)


-
 
Old 04-08-2015, 04:08 AM   #6
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #3, #4.

! Please do not quote entire posts ! A "one word reference" will do.

What do you mean ?
1) LEACH without mannasim doesn't work ?
2) LEACH with mannasim out doesn't work ?

Repeat : There is no chance that you can add Leach to a mannasim patched ns-2.34.

Setting up two times ns-allinone-2.34
a) /home/saho/mannasim/ns-allinone-2.34/ (for mannasim)
b) /home/saho/ns-allinone-2.34/mit/ ( The MIT Leach.)


-
without?! it means both mannasim and leach must be install!!!
first I installed ns2.34 with mannasim and mannasim 's PATH is /home/saho/nss/ns-allinone-2.34/ns-2.34/mannasim.
but in your PATH mannasim is befor ns-allinone-2.34!!!/home/saho/mannasim/ns-allinone-2.34 .
it means I should install again ns2.34 in /home/saho/nss/ns-allinone-2.34/ns-2.34/mannasim ?

second https://abdusyarif.wordpress.com/201...-step-by-step/

What do you mean ? (Setting up two times ns-allinone-2.34)?
 
Old 04-08-2015, 07:31 AM   #7
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
! Stop with the quoting of entire posts !


The usual setup for Leach is : /home/<name>/ns-allinone-2.34/

Mannasim : /home/saho/nss/ns-allinone-2.34/
... Actually any folder except Desktop can be used for ns2.



Quote:
What do you mean ? (Setting up two times ns-allinone-2.34) ?
Yes.
Leach is easy to build in ns-allinone-2.34, if you have the right 32bits Linux OS.
Ex http://www.linuxquestions.org/questi...-4175504301/#2
. http://www.linuxquestions.org/questions/tags/pegasis/
... The right OS is CentOS 6.6 - 32bits (i686).

Mannasim is equally easy to build, in ns-2.34, or ns-allinone-2.35-paultsr :
http://www.linuxquestions.org/questi...-4175534972/#2
All mannasim http://www.linuxquestions.org/questions/tags/mannasim/


-
 
Old 04-08-2015, 07:53 AM   #8
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
tnx .

what you are saying is not my problem.
I install ns2.34 with mannasim correctly.

when I have done all of those which sayed in this page (https://abdusyarif.wordpress.com/201...step/)(install and rummig leach in ns2.34) i faced by this problem
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
while executing

my ns dosent work.
what should I do?
 
Old 04-08-2015, 07:58 AM   #9
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
Re #8.

"https://abdusyarif.wordpress.com/201...-step-by-step/)(install"
.... is not a valid link.

How to copy a link address :
Right click >> Select : Copy Link Location.


-
 
Old 04-08-2015, 08:07 AM   #10
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
installing-running-leach-ns-2-34-step-by-step/
 
Old 04-08-2015, 08:13 AM   #11
SAHO
LQ Newbie
 
Registered: Mar 2015
Posts: 25

Original Poster
Rep: Reputation: Disabled
I want to run leach in ns2.34 and ubuntu .
what is your procedure to install and run leach ?
step by step
tnx
 
Old 04-08-2015, 08:30 AM   #12
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
Re #10.

https://abdusyarif.wordpress.com/201...-step-by-step/
I don't see any text about 'mannasim'.


Re #11 : You may get a result with the 32bits Ubuntu 10.04.
The recommended OS (so far) is CentOS 6.6 - 32bits
http://ftp.funet.fi/pub/mirrors/cent...6-bin-DVD1.iso
>>> CentOS-6.6-i386-bin-DVD1.iso

Your OS : Unknown Ubuntu version / unknown architecture.


Quote:
what is your procedure to install and run leach ?
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ tar xvf leach+pegasis-ns234-files-2.tar.gz (The updated leach (and pegasis))
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.34/
$ sudo make install

Running the simulation :
Code:
$ 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
LEACH info
. http://www.linuxquestions.org/questions/tags/pegasis/
. http://www.linuxquestions.org/questions/tags/leach/


-

Last edited by knudfl; 04-08-2015 at 08:32 AM.
 
1 members found this post helpful.
Old 08-30-2015, 06:50 AM   #13
sanazs
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Answer

QUESTION:
[COLOR="black"]
Quote:
Originally Posted by SAHO;53[/COLOR
44210]hi
I install ns2.34 with mannasim correctly.
but after install leach ns doesnt work.
erorr is:
ns:
[code omitted because of length]
: invalid command name "DataGenerator/TemperatureDataGenerator"
while executing
"DataGenerator/TemperatureDataGenerator set sensing_interval_ 0.0"
while executing

What is the problem?
ANSWER:
hi.
I think you should copy all of file (into the mannasim folder) to the ns-allinone-2.35 folder. .then reinstall the ns

Last edited by sanazs; 08-30-2015 at 06:58 AM.
 
  


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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 08:10 AM
how to install mannasim in ns2.34 in ubuntu14.04 divya1 Linux - Wireless Networking 14 03-03-2015 02:46 PM
query on mannasim LEACH installation on ns2.35 and Ubuntu 14.10 flowing_river Linux - Software 8 03-03-2015 09:46 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 01:09 AM
How to install Mannasim on Ns2.33 Aska123 Linux - Wireless Networking 1 04-05-2013 04:50 AM

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

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