openocd: 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/openocd - from package: openocd

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/openocd - from package: openocd

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