testrb2.1: 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/testrb2.1 - from package: ruby2.1

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