afmtodit: 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/afmtodit - from package: groff-perl

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/afmtodit - from package: groff

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