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

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