You can have as many ns-allinone-2.xx as you want ( I have 90 ),
installed at the same time.
But do not add any *PATH text to .bashrc : Usually not required.
( Unless it's the "University Computer" : No write access to /usr/.)
* The executable `ns*ī is hard coded to know the location of itīs libraries.
( Which means you cannot move or rename the "ns-allinone-*/{bin/, lib/}" ).
How to setup / use, example :
//dir1/// ns-2.31/ : $ cp ns ns-orig ; # cp ns-orig /usr/local/bin/ .
//dir2/// ns-2.31/ : $ cp ns ns-tfrc ; # cp ns-tfrc /usr/local/bin/ .
//dir3/// ns-2.31/ : $ cp ns ns-crahn ; # cp ns-crahn /usr/local/bin/ .
//dir4/// <any ns2 version> , etc. etc.
Ref. @Retta
http://www.linuxquestions.org/questi...or-4175503446/
All simulations will usually work perfect with $ ns-<name> file.tcl ,
like $ ns-crahn test-random-topology.tcl .
In occasions where a bash script uses plain 'ns' :
Copy the appropriate 'ns' to /usr/local/bin/ . Or edit the shell script.
-