Welcome to LQ.
Even if you do things right, you will not get much with Ubuntu 14.04 - x86_64.
The xgraph plot file leach.alive.txt is a one liner.
* The leach+pegasis-ns234-files-2.tar.gz works slightly better with CentOS 6.7 - i686.
So unless you are specifically going for PEGASIS, please use the dedicated 64bits patch.
I.e. leach_ns235-Jun2015.patch, for ns-allinone-2.35_gcc482.tar.gz .
See #11 for the build
http://www.linuxquestions.org/questi...4175556129/#11
And
http://www.linuxquestions.org/questi...gy-4175556129/
... for other details, like $ gawk -f leach__nodes-alive.awk leach.alive >> leach.alive.txt
Do not add any *PATH for 'ns' to .bashrc . Not required.
( /usr/local/bin/ns will do.)
The .bashrc can be edited. Or replaced with the original .bashrc :
https://drive.google.com/file/d/0B7S...ew?usp=sharing
-