scanmacho: 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/scanmacho - from package: pax-utils

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

On Debian possible default full paths are:

/usr/bin/scanmacho - from package: pax-utils

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