autospec: 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/lib/ruby/gems/1.8/gems/rspec-core-2.6.4/bin/autospec - from package: rubygem-rspec-core
/usr/bin/autospec - from package: rubygem-rspec
/usr/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/autospec - from package: rubygem-rspec

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