To download, configure, build, and install Plumed 2.x (CP2K requires Plumed2), one may proceed as shown below. See also How to compile CP2K with Plumed.

wget --content-disposition --no-check-certificate
tar xvf plumed2-2.8.0.tar.gz
cd plumed2-2.8.0

wget --content-disposition --no-check-certificate
chmod +x
./ plumed

Please make the intended compiler available on the command line. For instance, many HPC centers rely on module load.

source /opt/intel/compilers_and_libraries_2020.4.304/linux/bin/ intel64

Note: Please make the "python" command available, which may point to Python2 or Python3. For example, create a bin directory at $HOME (mkdir -p ${HOME}/bin), and create a symbolic link to either Python2 or Python3 (e.g., ln -s /usr/bin/python3 ${HOME}/bin/python).

For example, to configure and make for an Intel Xeon Scalable processor ("SKX"):

make distclean
make -j; make install