lilypond-invoke-editor: 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/lilypond-invoke-editor - from package: lilypond

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