afterimage-config: 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/afterimage-config - from package: libAfterImage-devel

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

On Debian possible default full paths are:

/usr/bin/afterimage-config - from package: libafterimage-dev

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