lcm-spy: 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/lcm-spy - from package: lcm-java

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