nodecachefilereader: 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/nodecachefilereader - from package: osm2pgsql

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