While saving this NAMD directory, in case it might turn out useful (i.e., recoverable), I restarted from scratch. I decided to try to compile NAMD with plumed although I was informed that bias exchange (which I need) is not available in this code. I'll look for other possibilities within plumed. Unfortunately, my hardware is not supported by gromacs, where bias exchange is available.
I restarted from a NAMD directory where charm++, fftw, tcl, and tcl-threaded had already been generated without errors.
plumedpatch was copied from /patches to the NAMD directory.
The env plumedir was exported.
NAMD was configured, generating a NAMD building directory that had the same name "Linux-x86_64-g++" as for
myarch in the plumedpatch.
Running the plumedpatch, errors were reported:
./plumedpatch_namd.sh: line 51: syntax error near unexpected token `('
./plumedpatch_namd.sh: line 51: ` echo -n " \$(DSTDIR)/${f%.c}.o"'
Line 51 and surrounding lines of the plumedpatch are shown below:
echo -n "PLUMED_OBJECTS="
for file in $plumedir/common_files/*.c
do f=${file##*/}
echo " \\"
echo -n " \$(DSTDIR)/${f%.c}.o" (LINE 51)
done
echo
if [ "$RECON_LIBS" != "" ] ; then
for file in $plumedir/recon_src/*.cpp
do f=${file##*/}
echo " \\"
echo -n " \$(DSTDIR)/${f%.cpp}.o"
I am unable to detect my mistake. No good excuse, I admit. Though, while trying to correct myself, I rely on your kind advice.
Thanks
francesco