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

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