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

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