autospec2: 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/autospec2 - from package: rubygem-rspec-core

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