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

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