LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-21-2009, 11:47 PM   #1
shojaru
LQ Newbie
 
Registered: Mar 2009
Distribution: Ubuntu 9.04
Posts: 25

Rep: Reputation: 15
Question installing diff. versions of NS2 in the same machine?how to make the modification?


I want to simulate some network topology in NS2. I found different types of patches and files for different purpose. so, can I install all the different versions I need, on the same machine, and run them as I need ; I mean, maybe one patch for voice simulation or the other for MPEG video transmission?
also, can I modify my existing ns2.33 by just copying the Modified mac folder of ns2.28 ( which I received by email from a friend ) ? what command should I use for the modification to take place?
 
Old 05-26-2009, 12:35 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,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
It would be possible to have more than one version
of ns2. Just keep them in different locations in
/home/"username"/dir-1/ns2 .... dir-2/ns2/ , and
use all-in-one versions.
Then they will all have a unique PATH, and 'ns'
is to be used as './ns' inside that version,
thus not being disturbed by the other versions.
.....
Modifying ns-2.33, suggest : set up a new unpacked
ns-allinone-2.33 in /home/"username"/, and use that
for the experiments with additional software.
.....
 
Old 03-15-2012, 09:24 PM   #3
hhgh
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy How to set unique PATH for two versions of NS2

Hi knudfl,

I have installed two versions of NS2 (ns2.28 and ns2.35) in two different directories on Linux CentOS 6, as followings.


Firstly installed, ns2.35: /usr/local/ns-allinone-2.35/
Secondly installed, ns2.28: /usr/local/ns228/ns-allinone-2.28/


How can I put the unique PATH for two versions?
Apparently; for me it is not unique. Because, when I run ./ns inside the (/ns2.28) directory, it is using/invoking the NAM version 1.15 which belongs to ns2.35 instead of using NAM version 1.11.


Thank you in advance,
 
Old 03-16-2012, 05:44 AM   #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,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post #3.

1) None of your installed versions of ns-allinone can be added to a *PATH,
when you have more than one version.
And : Adding any ns2 *PATH to .bashrc : Not required on Linux.
The binary 'ns' is hard coded to know the location of the libraries.

2) Use a better nam than version 1.15 : The identical 1.14 works better.
The only change that was intended for 1.15 : Can now compile with tcl8.5.
Also : Nam is a separate application. Any nam can be used for any ns2.

A static nam 1.14
32bits https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
64bits https://docs.google.com/open?id=0B7S...NiYjY0ODE1YmQw
Unpack nam-1.14-<arch>.tar.gz, and copy 'nam' to /usr/local/bin/
This nam requires no ns2 libraries: Will even work on an OS with no ns2, no tcl !

All binaries 'ns' can be also be copied to /usr/local/bin/ : One named ns.
And, examples : ns228 (ns228.orig) ns228+<patch-name> ns235, etc.


P.S. : The default build location is /home/<name>/<ns2> :
All ns2 commands should be run as unprivileged user. No 'root'.
'root' is for administrative tasks only.

.

Last edited by knudfl; 03-16-2012 at 05:56 AM.
 
  


Reply

Tags
modify, ns-allinone, 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
Diff Between Different Linux Versions..... speedynair007 Linux - Newbie 6 09-14-2008 03:24 AM
problem with re-make in ns2.26 newbie06 Red Hat 1 12-18-2006 06:42 PM
can ssh communicate with diff versions matticus Linux - Security 4 08-10-2006 11:06 AM
Solution Netgear WG511 & Linux 2 diff versions lewt Linux - Wireless Networking 1 12-25-2004 06:30 PM
Installing two versions of php in the same machine. aadaileh Linux - Software 4 04-20-2004 10:23 AM


All times are GMT -5. The time now is 09:11 AM.

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