erlc: 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/erlc - from package: erlang-erts
/usr/lib64/erlang/bin/erlc - from package: erlang-erts
/usr/lib64/erlang/erts-5.8.5/bin/erlc - from package: erlang-erts

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

On Debian possible default full paths are:

/usr/bin/erlc - from package: erlang-base-hipe
/usr/lib/erlang/bin/erlc - from package: erlang-base-hipe
/usr/lib/erlang/erts-6.2/bin/erlc - from package: erlang-base-hipe
/usr/bin/erlc - from package: erlang-base
/usr/lib/erlang/bin/erlc - from package: erlang-base
/usr/lib/erlang/erts-6.2/bin/erlc - from package: erlang-base
/usr/lib/debug/usr/lib/erlang/bin/erlc - from package: erlang-dbg
/usr/lib/debug/usr/lib/erlang/erts-6.2/bin/erlc - from package: erlang-dbg

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