gsdj: 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/gsdj - from package: ghostscript

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

On Debian possible default full paths are:

/usr/bin/gsdj - from package: ghostscript

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