bug-lilypond
[Top][All Lists]
Advanced

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

Re: DYLD_LIBRARY_PATH fails in gs, OS X El Capitan


From: Derek Johnson
Subject: Re: DYLD_LIBRARY_PATH fails in gs, OS X El Capitan
Date: Sat, 14 Nov 2015 08:15:35 -0700 (MST)

I too had a problem with lilypond --png on Mac OS X El Capitan. I'm replying
to this because I can't find the original message.

When I ran: 

$ lilypond --png C4.ly 

I got:

ln: ./libgs.7.80.dylib: File exists
GNU LilyPond 2.18.2
Processing `C4.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `C4.ps'...
Converting to PNG...dyld: Library not loaded: ./bin/../lib/libgs.8.70.dylib
  Referenced from:
/Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
  Reason: image not found

fatal error: GS exited with status: 5

The problem seems to be that the version of gs supplied with the LilyPond
App has a bad link to the libgs.8.70.dylib library. You can confirm this
using:

$ otool -L /Applications/LilyPond.app/Contents/Resources/bin/gs 
/Applications/LilyPond.app/Contents/Resources/bin/gs:
        ./bin/../sobin/libgs.8.70.dylib (compatibility version 0.0.0, current
version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
88.1.2)

To change the link, use the install_name_tool command:

$ cd /Applications/LilyPond.app/Contents/Resources/bin

$ install_name_tool -change ./bin/../sobin/libgs.8.70.dylib
@executable_path/../lib/libgs.8.70.dylib gs

I discovered how to do this from the following link:

Stack Overflow
<https://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-loaded>
  




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/DYLD-LIBRARY-PATH-fails-in-gs-OS-X-El-Capitan-tp181481p183547.html
Sent from the Bugs mailing list archive at Nabble.com.



reply via email to

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