The truth is rarely pure and never simple

Install CPMD 4.3 on Debian 9.7 Stretch

First, install the dependencies:

sudo apt-get install libopenmpi-dev openmpi-bin build-essential gcc gfortran liblapack-dev libblas-dev libfftw3-dev

Then prepare the Makefile

./configure.sh LINUX-I686-GFORTRAN

Some adjustments are required. Please edit the Makefile and change these lines:

LFLAGS =  /home/vwe/program/liblapack331_gfortran_4.6.2.a /home/vwe/program/libblas331_gfortran_4.6.2.a
CPPFLAGS = -D__Linux  -D__HAS_FFT_DEFAULT       -I${SRCDIR} -D'SVN_REV="4610"'
CC = /home/vwe/program/GCC-4.7.2-valgrind/bin/gcc-4.7.2
FC = /home/vwe/program/GCC-4.7.2-valgrind/bin/gfortran-4.7.2
LD = /home/vwe/program/GCC-4.7.2-valgrind/bin/gfortran-4.7.2

to

LFLAGS = -L/usr/lib/x86_64-linux-gnu/ -lblas -llapack -lfftw3
CPPFLAGS = -D__Linux  -D__HAS_FFT_DEFAULT -D__GNU -DFFT_FFTW3 -DPOINTER8 -I${SRCDIR} -D'SVN_REV="4610"'
CC = gcc
FC = gfortran
LD = gfortran

Leave a comment

Your email address will not be published.