It is necessary to put a patch in a folder "Nwchem-6.5\sys" and apply it: cd $NWCHEM_TOP/src wget http://nwchemgit.github.io/images/Util_md_sockets.patch.gz gzip -d Util_md_sockets.patch.gz patch -p0 < Util_md_sockets.patch