gksm2ps: 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 Debian possible default full paths are:

/usr/bin/gksm2ps - from package: ferret-vis

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