opj_compress: 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/opj_compress - from package: libopenjp2-tools

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