Check to make sure that the manual you are using is for the same version
as the lilypond that you are using.
I didn't pay attention to this and had the same problem.
Sebastiano Vigna wrote:
>...into LSR being working again.
>For some reason, lilypond refuses to compile any snippet from the
>manual. For instance, lily-1260486893.ly from the manual (the first
>example about notes)
>GNU LilyPond 2.5.31
>Preprocessing graphical objects...
>Calculating line breaks... test.ly:2:32: In procedure module-lookup
>in expression (ly:parser-print-score p (ly:music-scorify m p)):
>test.ly:2:32: unbound variable: output-classic-framework
Sound and Silence
Seattle, Wa. 98114