lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GS problem with Lily 2.21.0


From: Jonas Hahnfeld
Subject: Re: GS problem with Lily 2.21.0
Date: Sat, 18 Apr 2020 09:01:22 +0200
User-agent: Evolution 3.36.1

Am Donnerstag, den 16.04.2020, 19:15 +0100 schrieb Timothy Lanfear:
> These lines would seem to be relevant showing a mixture of gs versions 
> 9.26 and 9.21,
> 
> On 16/04/2020 13:46, Simon Albrecht wrote:
> > 
> > warning: No such directory 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/fonts' 
> > for GS_FONTPATH
> > 
> > warning: No such directory 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/gs/fonts' for GS_FONTPATH
> > 
> > Prepending 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/Resource' 
> > to GS_LIB
> > 
> > Setting GS_LIB to 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/Resource'
> > 
> > Prepending 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/Resource/Init'
> >  
> > to GS_LIB
> > 
> > Setting GS_LIB to 
> > '/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/Resource/Init:/home/simon/lilypond/2.21.0/lilypond/usr/share/ghostscript/9.21/Resource'
> > 
> 
> > Invoking `gs -dSAFER -dDEVICEWIDTHPOINTS=595.28 
> > -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH 
> > -r1200 -sDEVICE=pdfwrite -dAutoRotatePages=/None -dPrinted=false 
> > -sOutputFile=bug.pdf -c.setpdfwrite -f/tmp/lilypond-1LrrwN'...
> > 
> > gs: Interpreter revision (926) does not match gs_init.ps revision (921).
> > 
> > 
> On my machine
> 
> /usr/local/lilypond-2.21.0/lilypond/usr/bin/gs --version returns 9.26, 
> conflicting with 
> /usr/local/lilypond-2.21.0/lilypond/usr/share/ghostscript/9.21
> 
> I hadn't noticed because I run my distribution's gs not Lilypond's. A 
> packaging error somewhere?

I just downloaded 2.20.0 and 2.21.0 and both contain GhostScript in
version 9.21. You're seeing 9.26 probably because the gs executable is
linked dynamically and will use the libgs.so.9 it finds first. By
default this is in /usr/lib/ which comes from your distribution. When
instead using the wrapper script provided by the installer and put into
bin/, you will get the correct version because it sets some magic
environment variables.

So the "correct" way to determine the version is
LD_LIBRARY_PATH=lilypond/usr/lib/ ./lilypond/usr/bin/gs --version
which returns 9.21

To address the original problem you should invoke lilypond via the
wrapper script /usr/local/lilypond-2.21.0/bin/lilypond
instead of using the the directly binary from
/usr/local/lilypond-2.21.0/lilypond/usr/bin/lilypond.

Regards
Jonas

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]