LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-30-2012, 04:22 AM   #1
popoaung
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Rep: Reputation: Disabled
how to install span and psm in ns2 2.34


Dear sir,
i' m working on ns2 2.34. i want to know psm and span protocol can run in ns2 2.34.
please reply me.
 
Old 10-30-2012, 04:48 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

First : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any of them to a *PATH.


PSM, SPAN Links .. ( Google .. psm ns2 .. and : Google .. span ns2 ..)

ns-allinone-2.1b8a http://people.csail.mit.edu/ronny/wireless_psm/

ns-2.33 http://ns-2.blogspot.dk/2008/09/wire...extension.html
> http://sourceforge.net/projects/nspme/files/ > ns-2.33-pmext-1.0.tar.gz

ns-2.28 http://mailman.isi.edu/pipermail/ns-...st/051575.html
> http://pdos.csail.mit.edu/~benjie/span/span_ns.html
> http://pdos.csail.mit.edu/~benjie/sp...8-patch.tar.gz

http://dl.acm.org/citation.cfm?id=1459214

http://en.pudn.com/downloads160/sour...720130_en.html
etc. etc.
.
 
Old 12-12-2012, 11:20 AM   #3
popoaung
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
thanks sir
 
Old 02-22-2013, 12:48 AM   #4
popoaung
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
how to install ns2.28 on ubuntu 8.04? please give me installation guide to install it. thanks
 
Old 02-22-2013, 04:36 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 4 : Ubuntu 8.04 : Unsupported.
Did you change the sources.list to use "the old archive" links ?
>> http://old-releases.ubuntu.com/ubuntu/

Prerequisites for ns2 : $ sudo apt-get install \
g++ g++-4.1 make patch autoconf automake libtool libxmu-dev xgraph


Installing ns-allinone-2.28 :
1) tar xvf ns-allinone-2.28.tar.gz
2) patch -p0 < ns228-gcc40.patch
3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
4) cd ns-allinone-2.28/
5) export CC=gcc-4.1 CXX=g++-4.1 && ./install

The two patches are here, post # 15
http://www.linuxquestions.org/questi...4-a-842773/#15

-

Last edited by knudfl; 02-22-2013 at 05:18 AM.
 
1 members found this post helpful.
Old 02-24-2013, 03:15 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
SPAN :
When the span build fails, the binary Ubuntu package, span-ns-2.28-1.el5_i386.deb
can be used ..
https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. providing /usr/local/bin/ns-span

Using an ns-allinone-2.28 in $HOME (or $HOME/<dir>), patched with span-2.28-patch.tar.gz:
sudo cp /usr/local/bin/ns-span ns-allinone-2.28/ns-2.28/ns

Simulation, ref. ns-allinone-2.28/ns-2.28/span/tools/REAME :
cd ns-allinone-2.28/ns-2.28/tcl/ex/
$ perl run-span.pl tcl/mobility/scene/600-600-n120-0-t600-m1-p60-e0-r10.scen -stop 120
.. And the files { /tmp/ span.out span.stdout span.tr } are created.

-
 
1 members found this post helpful.
Old 04-05-2013, 02:57 AM   #7
popoaung
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
span

how can i do? please help me
Attached Thumbnails
Click image for larger version

Name:	Screenshot-mayzin@mayzin-laptop: ~-ns-ns-allinone-2.28-ns-2.28-tcl-ex.png
Views:	25
Size:	32.1 KB
ID:	12222  
 
Old 04-05-2013, 03:24 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

run-nopsm.pl, run-psm.pl, run-spanopt.pl, run-span.pl :

Very simple : Edit line 3 in the perl script(s) to your path, like :
$nsdir = "$ENV{HOME}/ns-allinone-2.28/ns-2.28";

Or the easy way : $ ln -s <location>ns-allinone-2.28/ /home/mayzim


-

Last edited by knudfl; 04-05-2013 at 04:18 AM.
 
1 members found this post helpful.
Old 04-08-2013, 12:17 PM   #9
popoaung
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
thank u very much!!!
 
  


Reply

Tags
ns2, psm, span, span-psm



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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
Psm ink Grey_Lynch Linux - Newbie 1 06-29-2010 06:00 AM
Psm former86camaro Ubuntu 1 02-09-2006 12:19 PM
forgot to install PSM for Mozilla bobotoes Linux - Newbie 0 11-17-2004 10:18 PM
Mozilla PSM chrisk5527 Linux - General 2 02-02-2004 11:01 PM

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

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