As per the ns2 tutorial http://www.isi.edu/nsnam/ns/tutorial/ to set up nodes the command set n0 [$ns node] is used, when I try this command I get an error, I can not also open the files including all the code in tutorials that you can use as a base point. The errors I get are as below for setting up the nodes:
% set ns [new Simulator]
_o11
% set nf [open out.nam w]
file4
% $ns namtrace-all $nf
file4
% proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
% set n0 [$ns node]
class Node: constructor failed: invalid command name "_o4 _o11"
% set n1 [$ns node]
class Node: constructor failed: invalid command name "_o4 _o11"
To display the TCL files the following error occurs:
% ns ns-simple.tcl
error when calling class OldSim: ns-simple.tcl
Any help would be greatly appreciated as I need ns2 for my dissertation urgently and I cannot find any way of resolving the issues.