.link-sml: 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/smlnj/bin/.link-sml - from package: smlnj-runtime

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