socket_getaddrinfo: 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

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_getaddrinfo - from package: libsocket-getaddrinfo-perl

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