About Patching Nwchem-6.5


Clicked A Few Times
Hi...

My OS is Ububtu 14.04 64bit
My nwchem address is at "$NWCHEM_TOP//home/ariel/programs/nwchem"
I want to apply the 6 patches files to the source code of Nwchem-6.5.revision26243-src.2014-09-10 and compress it again to preserve a patched source code...

Someone could show me how to apply the patches?

Thank you..

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

Clicked A Few Times
After following the commands above I got:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:


|Index: util/util_md_sockets.c
|=================================================================== |--- util/util_md_sockets.c (revision 26262)
|+++ util/util_md_sockets.c (revision 26263)


File to patch:

Could you tell me what am I doing wrong? I am using:
Nwchem-6.5.revision26243-src.2014-09-10

Thanks,
Rafael

Forum Vet
What do you get out of the following commands

env | grep NWCHEM_TOP

pwd

Clicked A Few Times
NWCHEM_TOP=/home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10

Clicked A Few Times
pwd

/home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10

Forum Vet
Quote:Rafapa Oct 4th 12:54 am
pwd

/home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10


cd src
a.k.a.
cd $NWCHEM_TOP/src
a.k.a.
cd /home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10/src

Clicked A Few Times
Quote:Edoapra Oct 4th 1:47 pm
Quote:Rafapa Oct 4th 12:54 am
pwd

/home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10


cd src
a.k.a.
cd $NWCHEM_TOP/src
a.k.a.
cd /home/rafapa/Downloads/Nwchem-6.5.revision26243-src.2014-09-10/src

I am really sorry for wasting your time!
I swear I believe I just pasted your commands. Obviously I did something wrong.


Forum >> NWChem's corner >> General Topics