[Top][All Lists]

[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'
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:
  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

$ otool -L /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

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

View this message in context: 
Sent from the Bugs mailing list archive at Nabble.com.

reply via email to

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