ttf2afm: 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/ttf2afm - from package: texlive-afm

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

On Debian possible default full paths are:

/usr/bin/ttf2afm - from package: texlive-binaries

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