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

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