hp-doctor: 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/hp-doctor - from package: hplip-gui

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

On Debian possible default full paths are:

/usr/bin/hp-doctor - from package: hplip

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