Repeat : Please show the output from this command : $ uname -m
And please do not quote entire posts : A "one word reference" will do. Like: Re #2.
Using the old ns234 files for ns-2.35 : Good, the ns235 files here ..
http://sourceforge.net/projects/wsnlocalisation/files/
... will supply a reduced "Localization" result.
Building ns-2.35 :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz ('Nov 2014' update for gcc-4.6 ..-4.9)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < WSN-Localisation-ns234-for_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ sudo make install ('make install' will copy ns to /usr/local/bin/)
$ cp ns ns235-Loc-0 ( ns-<any-name> will work )
$ sudo cp ns235-Loc-0 /usr/local/bin/
$ cd ../nam-1.15/ && sudo make install
Simulation : 'ns235-Loc-0 loc1.tcl 1' and 'ns235-Loc-0 loc5.tcl 1 1' :
Same result as shown in post #3.
Your error : You probably used plain 'ns' in your command.
Please don't do that.
Then you are at risk using another (unpatched) "ns".
! All simulations will work with $ ns_new-name file.tcl
-