dcmqridx: 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 Debian possible default full paths are:

/usr/bin/dcmqridx - from package: dcmtk

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