About Patching Nwchem-6.5

From NWChem

Viewed 1668 times, With a total of 7 Posts
Jump to: navigation, search

Clicked A Few Times
Threads 5
Posts 15
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
Threads 10
Posts 1643
cd $NWCHEM_TOP/src
wget http://www.nwchem-sw.org/images/Util_md_sockets.patch.gz
gzip -d Util_md_sockets.patch.gz
patch -p0 < Util_md_sockets.patch
...

Clicked A Few Times
Threads 2
Posts 10
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
Threads 10
Posts 1643
What do you get out of the following commands

env | grep NWCHEM_TOP

pwd

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

Clicked A Few Times
Threads 2
Posts 10
pwd

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

Forum Vet
Threads 10
Posts 1643
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
Threads 2
Posts 10
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



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC