Well, somehow you will have to install the ns2 prerequisites.
Else no build of ns-allinone-2.35.
$ sudo apt-get install \
g++ g++-4.4 autoconf automake make patch libtool libxmu-dev xgraph
Suggest :
Use the 32bits (i386/i686) version of either 12.04.4 or 14.04.1,
both "LTS", and usually available on DVD sets.
I.e. g++* and libxmu-dev have lots of dependencies.
And those dependencies depends on more "dependencies".
So it's quite a job to find and download all those packages.
g++
http://packages.ubuntu.com/trusty/g++
libxmu-dev
http://packages.ubuntu.com/trusty/libxmu-dev
* ns-allinone-2.35 for gcc 4.8.2 .. 4.9.1 : ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
-