Post #3, @gauravsrivastav2507 : Welcome to LQ.
Leach cannot be added to ns-2.35 : Please use ns-allinone-2.34.
* You can have as many versions of ns-allinone-2 as you want,
installed at the same time.
Ubuntu 12.04 : Must be the 32bits ( i686 / i386 ) version.
Build example, Leach ...
.
https://groups.google.com/forum/?fro...c/OlR1n0gAK_4J
Gear is already present in ns-2.3x : Read your thread here →
https://groups.google.com/forum/?fro...E/lYM5eaQcZwgJ
$ cd ns-allinone-2.34/ns-2.34/tcl/ex/diffusion3/
$ ns gear-2pp-5n-1s-1r.tcl
.... etc. etc.
-