Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TexLive can't find Lilypond anymore #308

Open
Brayanokles opened this issue Mar 31, 2023 · 5 comments
Open

TexLive can't find Lilypond anymore #308

Brayanokles opened this issue Mar 31, 2023 · 5 comments

Comments

@Brayanokles
Copy link

Hello,

I have installed a new version of Lilypond.
Ever since, TexLive doesn't see Lilypond anymore.

Here is my test script:

\documentclass[a4paper, 11pt]{article}

\usepackage{lyluatex} 

\begin{document}
	This is a MWE.
	
	\lilypond{ c' d' e' } 
	
\end{document}

The result:

(c:/texlive/2020/texmf-dist/tex/latex/graphics/lscape.sty))'"lilypond"' is not recognized as an internal or external command,
operable program or batch file.
c:/texlive/2020/texm
f-dist/tex/latex/base/ltluatex.lua:109: 
Module lyluatex Error: LilyPond could not be started.
(lyluatex)             Please check that LuaLaTeX is started with the
(lyluatex)             --shell-escape option, and that 'program'
(lyluatex)             points to a valid LilyPond executable.
(lyluatex)             on input line 8

stack traceback:
	[C]: in function 'error'
	c:/texlive/2020/texmf-dist/tex/latex/base/ltluatex.lua:109: in function <c:/te
xlive/2020/texmf-dist/tex/latex/base/ltluatex.lua:108>
	(...tail calls...)
	c:/texlive/2020/texmf-dist/scripts/lyluatex/lyluatex.lua:1081: in method 'proc
ess'
	[\directlua]:1: in main chunk.
\ly@compilescore ...directlua {ly.score:process()}
                                                  
l.8 	\lilypond{ c' d' e' }
                        
? 

How can I fix this?

@jperon
Copy link
Owner

jperon commented Mar 31, 2023

You should ensure that lilypond is in your PATH environment variable.
In any case, manually adding the path of lilypond should solve the problem:

\usepackage[program=/path/to/lilypond]{lyluatex}

@Brayanokles
Copy link
Author

Path = C:\Program Files (x86)\Lilypond\lilypond-2.24.0\bin ??

@jperon
Copy link
Owner

jperon commented Mar 31, 2023

The executable should be included:

\usepackage[program={C:/Program Files (x86)/LilyPond/usr/bin/lilypond-windows.exe}]{lyluatex}

Given there are spaces and you’re and Windows, perhaps you should replace / by \, and perhaps add quotes around the path… not sure, but I’d be interested if you could tell me what eventually works (for future reference).

@Brayanokles
Copy link
Author

in bin, there is no lilypond-windows.exe file. Where can I find it?

@jperon
Copy link
Owner

jperon commented Mar 31, 2023

Perhaps it is lilypond.exe. I made a copy - paste from an old issue, so the names might have changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants