afterimage-libs: 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-libs - 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-libs - from package: libafterimage-dev

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