LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 04-15-2013, 11:19 AM   #1
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Rep: Reputation: Disabled
Unhappy Help : ns2.29 installation on ubuntu 10.04


plz some one give me step by step installation of ns2.29 on ubuntu 10.04 with Mannasim patch 2.29

i am fed up of trying.

AS MSG is not working with ns2.34
 
Old 04-15-2013, 11:34 AM   #2
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 274
Blog Entries: 7

Rep: Reputation: 41
You just need to type in the terminal
Code:
 sudo apt-get install ns 2.34
to install ns2.34, I'm not sure how you would go abou installing the patch though.....Hope this helps!
 
Old 04-15-2013, 12:11 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
Aska123 : Please stop making multiple threads about the same topic.


Mannasim : The patch name must be specified.
Like "mannasim-patch-ns2.29.tar.gz" , "mannasim-src-ns2.29.tar.gz".
 
Old 04-15-2013, 11:58 PM   #4
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Aska123 : Please stop making multiple threads about the same topic.


Mannasim : The patch name must be specified.
Like "mannasim-patch-ns2.29.tar.gz" , "mannasim-src-ns2.29.tar.gz".
sorry sir for multiple threads.

Last night I exhaust while trying to install ns2.9.

I want to run script generator tool which is given in mannasim-src-ns2.29.tar.gz.

I have read that mannasim-patch-ns2.29.tar.gz should be run in ns-allinone-2.29 folder and mannasim-src-ns2.29.tar.gz. should be run in ns-allinone-2.29/ns-2.29

is only one is sufficient or I have to use both?
mannasim-src-ns2.29.tar.gz has script generator tool while mannasim-patch-ns2.29.tar.gz not have.
 
Old 04-16-2013, 01:32 AM   #5
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
Thanks Nbiser

I want to install ns2.29 not ns2.34
 
Old 04-16-2013, 06:55 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
tar xvf ns-allinone-2.29.3.tar.gz && patch -p0 < mannasim-patch.diff
cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

cd ns-2.29/ ; cp ns ns-mannasim ; sudo cp ns-mannasim /usr/local/bin

$ ns-mannasim mannasim-rede-hierarquica.tcl : OK.
$ ns-mannasim mannasim-rede-plana.tcl : OK.


The package with the 'scriptGeneratorTool' can be unpacked anywhere.

-
 
Old 04-16-2013, 08:26 AM   #7
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
tar xvf ns-allinone-2.29.3.tar.gz && patch -p0 < mannasim-patch.diff
cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

cd ns-2.29/ ; cp ns ns-mannasim ; sudo cp ns-mannasim /usr/local/bin

$ ns-mannasim mannasim-rede-hierarquica.tcl : OK.
$ ns-mannasim mannasim-rede-plana.tcl : OK.


The package with the 'scriptGeneratorTool' can be unpacked anywhere.

-
I followed the same instruction. Also this time i did not copy nam-1.11 to usr/local/bin
when i type ls in usr/local/bin nam ns are already there.

ns-mannasim mannasim-rede-hierarquica.tcl is executing without error. but this file does not contain out.nam

when I try another file (given in attachment)
i have error
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
}"
invoked from within
"if {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {..."
Attached Files
File Type: txt example1.txt (582 Bytes, 16 views)
 
Old 04-16-2013, 08:42 AM   #8
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
I unpack nam-1.14.i586 in ns-allinone-2.29 folder.

Then run sudo cp nam /usr/local/bin

it copied.

now when I run again this example.

it says can't connect to existing one. Starting a new one

But NAM 1.14 window open and output is there.
 
Old 04-16-2013, 08:43 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
# 7 : Do not quote entire posts ! A one word reference will do !

Quote:
nam:
[code omitted because of length]
Looks like you have replaced nam with a corrupt one.

Please re-replace with ..
https://docs.google.com/file/d/0B7S2...it?usp=sharing
$ sudo cp -a nam /usr/local/bin/

-

Last edited by knudfl; 04-16-2013 at 08:44 AM.
 
Old 04-16-2013, 02:18 PM   #10
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
yes you are right . I had replced it with a corrupt one. but now NAM 1.14 is working.

Thanks a lot
 
Old 04-18-2013, 02:03 AM   #11
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
cd ns-2.29/ ; cp ns ns-mannasim ; sudo cp ns-mannasim /usr/local/bin

-[/QUOTE]

when I tyoe cp ns ns-mannasim in ns-2.29 folder
error
rohini@ubuntu:~/ns-allinone-2.29/ns-2.29$ cp ns ns-mannasim
cp: cannot stat `ns': No such file or directory

Also i have unpacked MannaSim Framework tar.gz file in to ns-2.29 folder

and follow these instructions

Unpack the tar.gz file into ns-2.29 main folder (if using ns all-in-one distribution ns-allinone-2.29/ns-2.29 folder). Inside mannasim/ folder just created look for a ns-modified-files/ folder. where ns-2.29 modified files are stored.
Substitue ns-2.29 files listed bellow by it's MannaSim version stored in ns-modified-files/ folder in mannasim/ directory.
ns-2.29/apps/udp.cc
ns-2.29/common/ns-process.h
ns-2.29/common/packet.cc
ns-2.29/common/packet.h
ns-2.29/mac/mac-802_11.cc
ns-2.29/tcl/lib/ns-lib.tcl
ns-2.29/tcl/lib/ns-default.tcl
ns-2.29/Makefile.in
In ns-2.29 main folder re-run configuration script and then re-compile the system:
./configure
make

for configure and make I did
export CC=gcc-4.1 CXX=g++-4.1 && ./configure && make

i got error as
mannasim/leach/mac/leach-wireless-phy.o: In function `hdr_rca:ffset()':
leach-wireless-phy.cc.text._ZN7hdr_rca6offsetEv[hdr_rca:ffset()]+0x4): undefined reference to `hdr_rca:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

Instructions are from site

http://www.mannasim.dcc.ufmg.br/download.htm
please suggest some solution.

Thanks

Last edited by Aska123; 04-18-2013 at 02:06 AM. Reason: source add
 
Old 04-18-2013, 03:21 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
# 11 . The general install instructions are in post #6 : Line 1 and 2.

*** Better delete ns-allinone-2.29/, and start from scratch !

Ubuntu 10.xx ( See post # 16 ) :
1) tar xvf ns-allinone-2.29.3.tar.gz
2) ln -s ns-allinone-2.29/ ns-allinone-2.29-mannasim
3) patch -p0 < mannasim-patch.diff
4) cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

-

Last edited by knudfl; 04-18-2013 at 02:06 PM.
 
Old 04-18-2013, 10:37 AM   #13
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
problem is in Mannasim source code

Dear kundfi

ns2.29 is installed successfully with nam

problem arise when i unpack Mannasim framework source code in ns-2.29 folder. and run make command.

error as given in above post.

Thanks
 
Old 04-18-2013, 10:49 AM   #14
Aska123
Member
 
Registered: Apr 2013
Posts: 184

Original Poster
Rep: Reputation: Disabled
There are two different thing
1. mannasim patch
2. Mannasim source code

mannasim patch is run in ns-allinone-2.29
mannasim source code is unpacked in ns-2.29

after that i modified files by replacing them

when run make after configure error occurs

plz review the problem

problem is in leach protocol

to delete ns2.29 i need courage

Last edited by Aska123; 04-18-2013 at 10:51 AM.
 
Old 04-18-2013, 11:05 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,218

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
# 14 .
Quote:
to delete ns2.29 i need courage
Then unpack a new one. You can have as many as you want,
installed at the same time :
/home/Aska123/a/ns-allinone-2.29/
/home/Aska123/b/ns-allinone-2.29/
/home/Aska123/c/ns-allinone-2.29/ , etc. etc.


Quote:
There are two different thing
1. mannasim patch
2. Mannasim source code
The patch has it all, except for the 'scriptGeneratorTool'.
Please read post # 6 :
The package with the 'scriptGeneratorTool' can be unpacked anywhere.


Quote:
when run make after configure error occurs
The instructions : No configure. Or make.
An no unpacking anything in ns-allinone-2.29/ns-2.29/ .
Please use the commands in post # 12.

-
 
  


Reply

Tags
mannasim


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.34 installation help in Ubuntu 10.10 xptional Ubuntu 37 02-05-2014 05:01 AM
NS2 v2.26 installation on Ubuntu 11.10 ulyssues.fam Linux - Newbie 50 07-28-2012 08:53 AM
installation of ns2.1b5 on ubuntu? shanky Linux - Software 3 03-12-2012 11:46 PM
ns2.29 installation in ubuntu bolmeteus Ubuntu 4 02-08-2011 01:46 PM


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