mkfontdir: 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/mkfontdir - from package: xorg-x11-font-utils

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

On Debian possible default full paths are:

/usr/bin/mkfontdir - from package: xfonts-utils

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