rqsh.gz: 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/share/doc/librdf-query-perl/examples/bin/rqsh.gz - from package: librdf-query-perl

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