cp2k.sopt: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/cp2k.sopt - from package: cp2k

You may install the required package with command yum install {package}
Error in other languages:
cp2k.sopt: bevel nie gevind nie
cp2k.sopt: comandă negăsită
cp2k.sopt: comando não encontrado
cp2k.sopt: commande introuvable
cp2k.sopt: command not found
cp2k.sopt: käsku ei ole
cp2k.sopt: không tìm thấy lệnh
cp2k.sopt: komanda nerasta
cp2k.sopt: Kommando nicht gefunden.
cp2k.sopt: kommandot finns inte
cp2k.sopt: komut yok
cp2k.sopt: nie znaleziono polecenia
cp2k.sopt: níor aimsíodh an t-ordú
cp2k.sopt: no se encontró la orden
cp2k.sopt: no s'ha trobat l'ordre
cp2k.sopt: opdracht niet gevonden
cp2k.sopt: parancs nem található
cp2k.sopt: perintah tidak ditemukan
cp2k.sopt: príkaz nenájdený
cp2k.sopt: příkaz nenalezen
cp2k.sopt: команда не найдена
cp2k.sopt: командата не е открита
cp2k.sopt: 命令找不到
cp2k.sopt: コマンドが見つかりません