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.
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.