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

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

On Debian possible default full paths are:

/usr/bin/ps2pdf - from package: ghostscript

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