tar -xvf plumed-2.5.2.tgz
cd plumed-2.5.2
./configure CXX=mpicxx CC=mpicc FC=mpifort --prefix=/path/to/EXTRA/plumed252 --enable-external-blas --enable-gsl --enable-external-lapack LDFLAGS=-L/path/to/EXTRA/mathlib LIBS=”-lrefblas –llapack”
make make install