testregexp.rb: 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/testregexp.rb - from package: mmseq

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