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

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

On Debian possible default full paths are:

/usr/bin/goaccess - from package: goaccess

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