English 中文(简体)
Lilypond Mac OS X build issue
原标题:

I am trying to do a clean build of Lilypond on a clean install of Mac OS X. Dependencies have been installed using Brew.

I do ./configure && make all in the Lilypond dir. It gets through the configure and starts building but ends on ERROR: In procedure dynamic-link: ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"

I know what libguile is, I don t know if it s on my system (or where it ought to be) but the configure script completes successfully and does not identify it as a missing dependency so I assume it was able to find it.

Any suggestions? Googling shows some old hints with regards to setting $LD_LIBRARY_PATH, but it seems these don t apply to Mac OS 10.6.

问题回答

There is a port of lilypond available from MacPorts.

$ port info lilypond
lilypond @2.12.3, Revision 3 (textproc)
Variants:             [+]docs, gui, universal

Description:          Lilypond is a unix-based automated engraving system that generates beautiful sheet music from input files. Lilypond uses its
                      own input format, .ly, which in many ways is similar to LaTeX. Lilypond can export sheet music to PDF, EPS, SVG, and PNG
                      formats, and can also create MIDI files.
Homepage:             http://lilypond.org/

Library Dependencies: fontforge, ghostscript, mftrace, guile, texinfo, pango, flex, urw-fonts, netpbm
Platforms:            darwin
License:              unknown
Maintainers:          snc@macports.org, openmaintainer@macports.org

It s likely that the dynamic libraries have a .dylib extension, but need a .so extension.

I worked around this by creating links in /opt/local/lib

Owner-Users-MacBook-Pro-15:~ Carl$ ls -l /opt/local/lib | grep .so

-rwxr-xr-x    2 root  admin     45152 Mar 11 12:19 libXcursor.1.dylib

-rw-r--r--    2 root  admin     50232 Mar 11 12:19 libXcursor.a

lrwxr-xr-x    1 root  admin        18 Mar 11 12:19 libXcursor.dylib -> libXcursor.1.dylib

-rwxr-xr-x    2 root  admin      1105 Mar 11 12:19 libXcursor.la

lrwxr-xr-x    1 root  admin        32 Mar 11 21:19 libguile-srfi-srfi-1-v-3.so -> libguile-srfi-srfi-1-v-3.3.dylib

lrwxr-xr-x    1 root  admin        36 Mar 11 21:19 libguile-srfi-srfi-13-14-v-3.so -> libguile-srfi-srfi-13-14-v-3.3.dylib

lrwxr-xr-x    1 root  admin        32 Mar 11 21:20 libguile-srfi-srfi-4-v-3.so -> libguile-srfi-srfi-4-v-3.3.dylib

lrwxr-xr-x    1 root  admin        33 Mar 11 21:20 libguile-srfi-srfi-60-v-2.so -> libguile-srfi-srfi-60-v-2.2.dylib

lrwxr-xr-x    1 root  admin        17 Mar 11 21:21 libguile.so -> libguile.17.dylib

lrwxr-xr-x    1 root  admin        30 Mar 11 21:22 libguilereadline-v-17.so -> libguilereadline-v-17.17.dylib

The easiest way to install Lilypond on macOS is to use lyp. Apart from installing lyp itself, which is a Ruby gem, there s no other dependency to install, no compilation step. Plus, you can install multiple versions of Lilypond and easily switch between them.

$ gem install lyp
$ lyp install lilypond

To install a specific version:

$ lyp install lilypond@2.19.53




相关问题
2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

Switching J2SE versions on Mac OS (SnowLeopard)

My current JDK on Mac OS (10.6) is set to 1.6 and I d like to switch to 1.5. A listing of /System/Library/Frameworks/JavaVM.framework/Versions/ shows: lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 ...

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it s possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I ve looked at ...

热门标签