On Mar 7, 2009, at 10:45 AM, James E. Bailey wrote:
On 07.03.2009, at 17:29, Tim McNamara wrote:
When I try to compile a .ly file in lilypond-mode, it fails with
the message:
-*- mode: compilation; default-directory: "~/Desktop/Downloads/
Music Charts/Lilypond Charts/Dead Tunes/Days Between/" -*-
Compilation started at Sat Mar 7 10:22:25
lilypond /Users/tim/Desktop/Downloads/Music\ Charts/Lilypond\
Charts/Dead\ Tunes/Days\ Between/Days\ Between.ly
/bin/bash: line 1: lilypond: command not found
is lilypond in your path? Does emacs know about your path? In my
~/.emacs, I have
(add-to-list 'load-path (expand-file-name "elisp" (getenv "HOME")))
(setq exec-path (split-string "/Users/jamesebailey/Applications/
LilyPond.app/Contents/Resources/bin:/bin:/sbin:/usr/bin:/usr/local/
bin:/usr/sbin" path-separator))
(setenv "PATH" (mapconcat 'identity exec-path ":"))
(setenv "MANPATH" "/Users/jamesebailey/share/man:/usr/share/man:/
usr/X11R6/man:/man")
(setenv "INFOPATH" "/Users/jamesebailey/share/info:/usr/local/info:/
usr/local/share/info:/usr/share/info")
Compilation is still not working with those additions; the problem
seems to be in Bash rather than in Emacs or LilyPond. Your fix for
viewing the PDFs does work, though, so that's nice. Thanks for
that! Adding:
/Applications/LilyPond.app/Contents/Resources/bin
and
/Applications/LilyPond.app/Contents/MacOS (which is there the
lilypond executable lives inside LilyPond.app)
to $PATH in .bashrc and in my .emacs doesn't resolve the problem,
even though "which lilypond" now returns the correct response in the
shell. I'll have to ponder this some more. My skills at this are
rusty because it's so rarely necessary to fiddle with things at this
level.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user