LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-30-2014, 02:27 AM   #1
divya1
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
how to install mannasim in ns2.34 in ubuntu14.04


how to install mannasim in ns2.34 in ubuntu14.04.
 
Old 09-30-2014, 05:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

$ sudo apt-get install g++-4.4

Mannasim, ns-2.34, Ubuntu 14.04 :
$ tar xvf ns-allinone-2.34.tar.gz
$ patch -p0 mannasim_ns-allinone234_gcc44.patch
EDIT : $ patch -p0 < mannasim_ns-allinone234_gcc44.patch
* https://drive.google.com/file/d/0B7S...it?usp=sharing
... If you have an existing ns-allinone-2.34, you will also
have to apply the patch outside the ns-allinone-2.34/ folder.

$ cd ns-allinone-2.34/
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

-

Last edited by knudfl; 10-10-2014 at 11:20 AM.
 
Old 10-10-2014, 09:37 AM   #3
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
patch -p0 mannasim_ns-allinone234_gcc44.patch
this command is not working.
 
Old 10-10-2014, 11:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
No, of course not.

The right command is
$ patch -p0 < mannasim_ns-allinone234_gcc44.patch

Sorry for the typo in post #2.


Mannasim info http://www.linuxquestions.org/questions/tags/mannasim/
Latest is : "ns-allinone-2.35-paultsr"
$ git clone https://github.com/paultsr/ns-allinone-2.35
.. see #24 : http://www.linuxquestions.org/questi...77#post4970177

-
 
Old 10-13-2014, 07:18 AM   #5
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
hello sir
while running "make" command during the installation of mannasim in ubuntu 14.04 i am getting error i.e.
make: *** No rule to make target `tcp/tcp-qs.o', needed by `ns'. Stop.

Sir plz help me.
 
Old 10-13-2014, 08:58 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 .
Quote:
run.. "make" command during the installation of mannasim
.
No ..... `tcp/tcp-qs.o'
! There is no tcp/tcp-qs* in ns-2.34 !


In which ns2 version are you trying to add mannasim ? ?


-
 
Old 10-13-2014, 09:03 AM   #7
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← #5 .

! There is no tcp/tcp-qs* in ns-2.34 !


In which ns2 version are you trying to add mannasim ? ?


-
In ns2.34 allinone
 
Old 10-13-2014, 10:06 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #7 .

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

There is no tcp/tcp-qs.o in the "mannasim_ns-allinone234_gcc44.patch".
The new objects added when patching are all "mannasim///<objects.o"
Please read lines 231 - 261. ( A patch is a text file.)

And : There is no such thing as "using any 'make' command" :
See post #2 .

-
 
Old 10-20-2014, 08:58 AM   #9
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
hello sir,
while using configure command during mannasim2.35 installation in ns2.35 in ubuntu 14.04 i am stuck at one error and that is:

configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.

Please provide solution as soon as possible.
thank you
 
Old 10-20-2014, 09:13 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #9 .
Quote:
while using configure command during mannasim2.35 installation
Not possible : You cannot use ./configure in ns-2.35/ : You can do ./install
( ./configure is usable till version 2.34 only.)

And why at all do the mannasim addition in a complicated way ?
Easier : Get ns-allinone-2.35-paultsr_mannasim.tar.gz, 58 MB
from https://drive.google.com/file/d/0B7S...ew?usp=sharing
.. unpack, $ cd ns-allinone-2.35/ && ./install
.. That's it. Simple.


-

Last edited by knudfl; 10-20-2014 at 09:16 AM.
 
Old 11-18-2014, 02:39 AM   #11
reenkamal
LQ Newbie
 
Registered: Sep 2014
Posts: 14

Rep: Reputation: Disabled
how to calculate various parameters in Mannasim generated LEACH in NS2.35

Sir
I have installed ns2.35 in ubuntu 14.04 and to simulate WSN i installed Mannasim.I am working on Hello Flooding attack on LEACH protocol.
My question is how can i calculate Throughput,Packet Loss,Energy Consumption,Residual Energy, Latency and Number of packets send and received in same.
 
Old 03-02-2015, 11:58 AM   #12
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
Hello,
I have downloaded leach+pegasis-ns234-files-2.tar.gz by exidus
and now by giving this command

panam@ubuntu:~/ns-allinone-2.34$ export CC=gcc-4.4 CPP=g++-4.4. && ./install

It generates following error..

configure: error: in `/home/panam/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C preprocessor "g++-4.4." fails sanity check
See `config.log' for more details
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

how to solve this??please help me in ir.
 
Old 03-02-2015, 01:09 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. post #5, @flowing_river.
Quote:
$ export CC=gcc-4.4 CPP=g++-4.4. && ./install
.
C preprocessor "g++-4.4." fails sanity check
CXX instead of CPP, please, and no period ( . ) after g++-4.4 :
Right is : $ export CC=gcc-4.4 CXX=g++-4.4

.. And you will of course have to install gcc-4.4, g++-4.4 :
$ sudo apt-get install g++-4.4


-
 
Old 03-03-2015, 12:46 PM   #14
flowing_river
LQ Newbie
 
Registered: Feb 2015
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
← ref. post #5, @flowing_river.

CXX instead of CPP, please, and no period ( . ) after g++-4.4 :
Right is : $ export CC=gcc-4.4 CXX=g++-4.4

.. And you will of course have to install gcc-4.4, g++-4.4 :
$ sudo apt-get install g++-4.4

-
I have exported successfully but still it's showing following error
make: gcc-4.4-4.4: Command not found
Makefile:830: recipe for target 'regcomp.o' failed
make: *** [regcomp.o] Error 127
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
 
Old 03-03-2015, 01:46 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #14.
Quote:
make: gcc-4.4-4.4: Command not found
Why are you trying to type a (wrong) command yourself,
.. when you easily can copy/paste the valid command from e.g. post #13 ?


Right is : export CC=gcc-4.4 CXX=g++-4.4


-
 
  


Reply

Tags
mannasim, mannasim-ns235, ns2



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
mannasim ns2.34 thikathika Linux - Software 7 10-09-2014 06:35 AM
mannasim on ns2.35 Riaz Khan Linux - Newbie 15 09-02-2014 06:45 AM
[SOLVED] Install mannasim path in ns2.34 in ubuntu 10.04 Aska123 Linux - Software 1 02-16-2014 10:58 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
How to install Mannasim on Ns2.33 Aska123 Linux - Wireless Networking 1 04-05-2013 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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