rqsh-server.pl.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-server.pl.gz - from package: librdf-query-perl

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