Ubuntu would be the best platform for all this.
Now you have downloaded ns and mannasim patch so you now you go here -
Unpack the tar.gz file of mannasim into ns-2.29 main folder (if using ns all-in-one distribution ns-allinone-2.29/ns-2.29 folder). Inside mannasim/ folder just created look for a ns-modified-files/ folder, where ns-2.29 modified files are stored.
Substitue ns-2.29 files listed bellow by it's MannaSim version stored in ns-modified-files/ folder in mannasim/ directory.
ns-2.29/apps/udp.cc
ns-2.29/common/ns-process.h
ns-2.29/common/packet.cc
ns-2.29/common/packet.h
ns-2.29/mac/mac-802_11.cc
ns-2.29/tcl/lib/ns-lib.tcl
ns-2.29/tcl/lib/ns-default.tcl
ns-2.29/Makefile.in
In ns-2.29 main folder re-run configuration script and then re-compile the system:
To test MannaSim installation I have attached two simulation scripts. The first one simulates a hierarchical network composed of two diferent classes of sensor nodes and the second one simulates a flat network of homogeneous sensors.