Hi Everybody,
I was trying to build Gromacs 4.6.7 with plumed and shared libraries with this recipe:
module swap PrgEnv-cray PrgEnv-gnu
module load fftw/
3.3.0.4module load cray-mpich/7.0.5
module load gsl/1.15
module load cmake
#the reason for bellow linking is that libblas and lapack on this Cray are inside of libsci.
ams@login1:/lustre/beagle2/ams/lib>ln -s /opt/cray/libsci/13.0.1/GNU/49/abudhabi/lib/libsci_gnu.a libblas.a
ams@login1:/lustre/beagle2/ams/lib>ln -s /opt/cray/libsci/13.0.1/GNU/49/abudhabi/lib/libsci_gnu.a liblapack.a
ams@login1:/lustre/beagle2/ams/lib2>ln -s /opt/cray/libsci/13.0.1/GNU/49/abudhabi/lib/libsci_gnu.so libblas.so
ams@login1:/lustre/beagle2/ams/lib2>ln -s /opt/cray/libsci/13.0.1/GNU/49/abudhabi/lib/libsci_gnu.so liblapack.so
###install plumed-2.1.1
wget
https://dl.dropboxusercontent.com/u/23916760/plumed/plumed-2.1.1.tgztar xzf plumed-2.1.1.tgz
cd plumed-2.1.1
./configure SOEXT=so LDFLAGS="-L/lustre/beagle2/ams/groplu/lib2 -dynamic" --prefix=/lustre/beagle2/ams/groplu/plumed-2.1.1 --enable-mpi
make
make install
export PATH=/lustre/beagle2/ams/groplu/plumed-2.1.1/bin:$PATH
### instal gromacs 4.6.7
wget
ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.6.7.tar.gztar xzf gromacs-4.6.7.tar.gz
cd gromacs-4.6.7/
ams@login1:/lustre/beagle2/ams/groplu/gromacs-4.6.7> plumed patch -p
PLUMED patching tool
1) amber14 3) gromacs-4.6.7 5) lammps-6Apr13 7) namd-2.9
2) gromacs-4.5.5 4) gromacs-5.0 6) namd-2.8 8) qespresso-5.0.2
Choose the best matching code/version:3
mkdir build
cd build
export BUILD_WITH_INSTALL_RPATH=TRUE
export INSTALL_RPATH=""
export SKIP_BUILD_RPATH=TRUE
export CMAKE_LIBRARY_PATH="/lustre/beagle2/ams/groplu/lib:$CMAKE_LIBRARY_PATH"
cmake ../ -DGMX_BUILD_OWN_FFTW=ON -DGMX_GPU=OFF -DGMX_MPI=ON -DCMAKE_INSTALL_PREFIX=/lustre/beagle2/ams/groplu/gromacs-4.6.7/build -DCMAKE_CXX_COMPILER=CC -DCMAKE_C_COMPILER=cc -DGMX_FORCE_CXX=ON -DGMX_DOUBLE=OFF -DGMX_X11=OFF -DCMAKE_EXE_LINKER_FLAGS="-dynamic" -DGMX_BLAS_USER=/lustre/beagle2/ams/groplu/lib/libblas.so -DGMX_LAPACK_USER=/lustre/beagle2/ams/groplu/lib/liblapack.so -DCMAKE_SKIP_RPATH=ON
make
make install
#####
Installation completes without any errors, then I try to run it with PBS script bellow:
#!/bin/bash
#PBS -N test
#PBS -j oe
#PBS -l walltime=01:00:00
#PBS -l mppwidth=64
. /opt/modules/default/init/bash
export PATH=/lustre/beagle2/ams/groplu/plumed-2.1.1/bin:$PATH
export PATH=/lustre/beagle2/ams/groplu/gromacs-4.6.7/build/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lustre/beagle2/ams/groplu/gromacs-4.6.7/build/lib
cd $PBS_O_WORKDIR
module swap PrgEnv-cray PrgEnv-gnu
module load fftw/
3.3.0.4module load cray-mpich/7.0.5
module load gsl/1.15
module load cmake
aprun -n 64 -cc cpu /lustre/beagle2/ams/groplu/gromacs-4.6.7/build/bin/mdrun_mpi -deffnm reusL -multi 12 -replex 10000 -plumed plumed.dat > outnew 2> errnew
After running ti I am getting this error:
cannot open shared object file: : : libcray_memcpy.so.0: : No such file or directory: libcray_memcpy.so.0cannot open shared object file
What should I do?My guess it to set LD_LIBRARY_PATH somehow???
Thanks in advance