nssock.so: 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/lib/aolserver4/bin/nssock.so - from package: aolserver4-daemon

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