]> git.donarmstrong.com Git - lilypond.git/blob - INSTALL.txt
release: 1.2.13
[lilypond.git] / INSTALL.txt
1
2
3 INSTALL - compiling and installing GNU LilyPond
4 ***********************************************
5
6 Abstract
7 ========
8
9    This document explains what you need to install LilyPond, and what
10 you should do.  If you are going to compile and install LilyPond often,
11 e.g. when doing development, you might want to check out the
12 `buildscripts/set-lily.sh' script.  It sets some environment variables
13 and symlinks, which comes in handly when you have to compile LilyPond
14 more often.
15
16 Obtaining
17 =========
18
19    You can get the latest version of LilyPond at
20 ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/
21 (ftp://ftp.cs.uu.nl/pub/GNU/LilyPond/).  Refer to the links document
22 for mirror sites.
23
24    _If you upgrade by patching do remember to rerun autoconf after
25 applying the patch_.
26
27    If you do not want to download the entire archive for each version,
28 the safest method for upgrading is to use `xdelta', see
29 `ftp://ftp.xcf.berkeley.edu/pub/xdelta/'
30
31    The following command produces `lilypond-1.1.55.tar.gz' from
32 `lilypond-1.1.54' identical (up to compression dates) to the .55 on the
33 FTP site.
34        xdelta patch lilypond-1.1.54-1.1.55.xd lilypond-1.1.54.tar.gz
35
36 Prerequisites
37 =============
38
39    For compilation you need:
40
41    * A GNU system: GNU LilyPond is known to run on these GNU systems:
42      Linux     (PPC, intel), FreeBSD, AIX, NeXTStep, IRIX, Digital Unix
43      and Solaris.
44
45    * Lots of disk space: LilyPond takes between 30 and 100 mb to
46      compile if you use debugging information.  If you are short on
47      disk-space run configure with `--disable-debugging'.
48
49    * Although we recommend to use Unix, LilyPond is known to run on
50      Windows NT/95/98 as well.  See Section Windows NT/95,es.
51
52    * EGCS 1.1 or newer. Check out `ftp://ftp.gnu.org/pub/gcc/'.
53
54    * Python 1.5, Check out `ftp://ftp.python.org' or
55      `ftp://ftp.cwi.nl/pub/python'.
56
57    * GUILE 1.3,  check out http://www.gnu.org/software/guile/guile.html
58      (http://www.gnu.org/software/guile/guile.html).
59
60    * GNU make.  Check out ftp://ftp.gnu.org/make/
61      (ftp://ftp.gnu.org/make/).
62
63    * Flex (version 2.5.4 or newer).  Check out ftp://ftp.gnu.org/flex/
64      (ftp://ftp.gnu.org/flex/).
65
66    * Bison (version 1.25 or newer).  Check out ftp://ftp.gnu.org/bison/
67      (ftp://ftp.gnu.org/bison/).
68
69    * Texinfo. Check out ftp://ftp.gnu.org/pub/texinfo/
70      (ftp://ftp.gnu.org/pub/texinfo/).  Most documentation is in
71      texinfo.
72
73    * The geometry package for LaTeX is needed to use ly2dvi.  Available
74      at
75      ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/supported/geometry
76      (ftp://ftp.ctan.org/tex-archive/macros/latex/contrib/supported/geometry)
77      or at mirror site ftp://ftp.dante.de (ftp://ftp.dante.de)
78
79    * MetaPost, if you want to use direct PostScript output. Please note
80      that  tetex-0.4pl8 (included with Redhat 5.x) does not include
81      `mfplain.mp', which is needed  for producing the scaleable font
82      files.
83
84
85 Running
86 =======
87
88    GNU LilyPond does use a lot of resources. For operation you need the
89 following software
90
91    * TeX
92
93    * A PostScript printer and/or viewer (such as Ghostscript) is
94      strongly     recommended.  Xdvi will show all embedded PostScript
95      too if you have     Ghostscript installed.
96
97    * GUILE 1.3, check out http://www.gnu.org/programs/guile.html
98      (http://www.gnu.org/programs/guile.html)
99
100    For running LilyPond successfully you have to help TeX and MetaFont
101 find various files.  The recommended way of doing so is adjusting the
102 environment variables in the start-up scripts of your shell.  An
103 example is given here for the Bourne shell:
104      export MFINPUTS="/usr/local/share/lilypond/mf:"
105      export TEXINPUTS="/usr/local/share/lilypond/tex:/usr/local/share/lilypond/ps:"
106
107    The empty path component represents TeX and MetaFont's default
108 search paths.  Scripts with the proper paths for the bourne and C-shell
109 respectively are generated in `buildscripts/out/lilypond-profile' and
110 `buildscripts/out/lilypond-login' during compilation.
111
112    LilyPond is a hiddeously big, slow and bloated program.  A fast CPU
113 and plenty of RAM is recommended for comfortable use.
114
115 Website
116 =======
117
118    The website is the most convenient form to use for reading the
119 documentation on-line documentation. It is made by entering
120
121        make website
122    This does require a fully functioning
123
124    If you want to auto-generate Lily's website, you'll need some
125 additional conversion tools.
126
127    * xpmtoppm (from the Portable Bitmap Utilities) (For RedHat Linux
128       users: it is included within the package libgr-progs).
129      the original is at
130      ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.p1.tar.gz
131      (ftp://ftp.x.org/contrib/utilities/netpbm-1mar1994.p1.tar.gz)
132
133    * pnmtopng, which is also in libgr-progs for RedHat. The original is
134      at
135      ftp://swrinde.nde.swri.edu/pub/png/applications/pnmtopng-2.37.2.tar.gz
136      (ftp://swrinde.nde.swri.edu/pub/png/applications/pnmtopng-2.37.2.tar.gz).i
137
138      The version of `pnmtopng' that is distributed with RedHat 5.1 and
139      5.2 contains a bug: pnmtopng is dynamically linked to the wrong
140      version of libpng, which results in cropped images.  Recompile it
141      from source, and make sure that the pnmtopng binary is linked
142      statically to the libpng that is included in libgr.  RedHat 6.0
143      does not have this problem.
144
145            tar xzf libgr-2.0.13.tar.gz
146                 make
147                 cd png
148                 rm libpng.so*
149                 make pnmtopng
150
151      You can then install the new pnmtopng into `/usr/local/bin/'
152
153    * Bib2html http://pertsserver.cs.uiuc.edu/~hull/bib2html.
154      (http://pertsserver.cs.uiuc.edu/~hull/bib2html.)      Which, in
155      turn depends on man2html for proper installation.  man2html can be
156      had from
157      http://askdonald.ask.uni-karlsruhe.de/hppd/hpux/Networking/WWW/Man2html-1.05
158      (http://askdonald.ask.uni-karlsruhe.de/hppd/hpux/Networking/WWW/Man2html-1.05).
159
160      The website will build without this utility, but you will not see
161      our hypertextified bibliography.
162
163    * Doc++ (optional) to read the source code.
164
165
166 configuring and compiling
167 =========================
168
169    to install GNU LilyPond, simply type:
170
171         gunzip -c lilypond-x.y.z | tar xf -
172         cd lilypond-x.y.z
173         ./configure             # fill in your standard prefix with --prefix
174         make
175         make install
176
177    This will install a number of files, something close to:
178
179         /usr/local/man/man1/mi2mu.1
180         /usr/local/man/man1/convert-mudela.1
181         /usr/local/man/man1/mudela-book.1
182         /usr/local/man/man1/lilypond.1
183         /usr/local/bin/lilypond
184         /usr/local/bin/mi2mu
185         /usr/local/bin/convert-mudela
186         /usr/local/bin/mudela-book
187         /usr/local/bin/abc2ly
188         /usr/local/share/lilypond/*
189         /usr/local/share/locale/{it,nl}/LC_MESSAGES/lilypond.mo
190
191    The above assumes that you are root and have the GNU development
192 tools, and your make is GNU make.  If this is not the case, you can
193 adjust your environment variables to your taste:
194
195
196         export CPPFLAGS="-I /home/me/my_include -DWEIRD_FOOBAR"
197         ./configure
198
199    `CPPFLAGS' are the preprocessor flags.
200
201    The configure script is Cygnus configure, and it will accept
202 `--help'. If you are not root, you will probably have to make it with a
203 different `--prefix' option.  Our favourite location is
204
205
206         ./configure --prefix=$HOME/usr
207
208    In this case, you will have to set up MFINPUTS, and TEXINPUTS
209 accordingly.
210
211    Since GNU LilyPond currently is beta, you are advised to also use
212
213
214         --enable-debugging
215         --enable-checking
216
217    Options to configure include:
218
219 ``--enable-printing''
220      Enable debugging print routines (lilypond `-D' option)
221
222 ``--enable-optimise''
223      Set maximum optimisation: compile with `-O2'.  This can be
224      unreliable on some compiler/platform combinations (eg, DEC Alpha
225      and PPC)
226
227 ``--enable-profiling''
228      Compile with support for profiling.
229
230 ``--enable-config''
231      Output to a different configuration file.  Needed for
232      multi-platform     builds
233
234    All options are documented in the `configure' help The option
235 `--enable-optimise' is recommended for Real Life usage.
236
237    If you do
238
239
240         make all
241
242    everything will be compiled, but nothing will be installed.  The
243 resulting binaries can be found in the subdirectories `out/' (which
244 contain all files generated during compilation).
245
246 configuring for multiple platforms
247 ==================================
248
249    If you want to compile LilyPond with different configuration
250 settings, then, you can use the `--enable-config' option.  Example:
251 suppose I want to build with and   without profiling.  Then I'd use the
252 following for the normal build,
253
254
255            ./configure --prefix=~ --disable-optimise --enable-checking
256            make
257            make install
258
259    and for the profiling version, I specify a different configuration.
260
261
262            ./configure --prefix=~ --enable-profiling --enable-config=optprof --enable-optimise --disable-checking
263            make config=optprof
264            make config=optprof install
265
266 Installing
267 ==========
268
269    if you have done a successful `make', then a simple
270
271
272         make install
273
274    should do the trick.
275
276    If you are doing an upgrade, please remember to remove obsolete
277 `.pk' and `.tfm' files of the fonts.  A script has been provided to do
278 the work for you, see `bin/clean-fonts.sh'.
279
280 Redhat linux
281 ============
282
283    RedHat Linux users can compile an RPM. A spec file is in
284 `make/out/lilypond.spec', it is distributed along with the sources.
285
286    You can make the rpm by issuing
287
288         rpm -tb lilypond-x.y.z.tar.gz
289         rpm -i /usr/src/redhat/RPMS/i386/lilypond-x.y.z
290
291    Precompiled i386 RedHat RPMS are available from
292 ftp://freshmeat.net/pub/rpms/lilypond/
293 (ftp://freshmeat.net/pub/rpms/lilypond/) and
294 http://linux.umbc.edu/software/lilypond/rpms/
295 (http://linux.umbc.edu/software/lilypond/rpms/).
296
297    For compilation on a RedHat system you need these packages, in
298 addition to the those needed for running:
299    * glibc-devel
300
301    * libstdc++-devel
302
303    * guile-devel
304
305    * flex
306
307    * bison
308
309    * texinfo
310
311 Debian GNU/linux
312 ================
313
314    A Debian package is also available; contact Anthony Fok
315 <foka@debian.org>.  The build scripts are in the subdirectory `debian/'.
316
317 Windows NT/95
318 =============
319
320    Separate instructions on building for W32 are available; See file
321 README-W32, included with the sources.
322
323 Problems
324 ========
325
326    For help and questions use <help-gnu-music@gnu.org> and
327 <gnu-music-discuss@gnu.org>.  Please consult the faq before mailing
328 your problems.
329
330    If you find bugs, please send bug reports to <bug-gnu-music@gnu.org>.
331
332    Known bugs that are LilyPond's fault are listed in `TODO', or
333 demonstrated in `input/bugs/'.
334
335    Known bugs that are not LilyPond's fault are documented here.
336
337 All platforms
338 *************
339
340 *GUILE 1.3.2
341      Guile 1.3.2 is buggy in several respects. Do not use it for
342      LilyPond.
343
344 LinuxPPC Bugs:
345 **************
346
347 *R5, egcs-1.1.2-12c
348      Egcs-1.1.2-12c (stock LinuxPPC R5) has a serious bug, upgrade to
349      fixed in egcs-1.1.2-12f or gcc-2.95-0a,
350      `ftp://dev.linuxppc.org/users/fsirl/R5/RPMS/ppc/'
351
352 *R4, egcs-1.0.2
353      All compiling with `-O2' is suspect, in particular guile-1.3, and
354      Lily herself will break.
355
356 Linux-i386
357 **********
358
359 *SuSE6.2 and similar platforms (glibc 2.1, libstdc++ 2.9.0)
360      Lily will crash during parsing (which suggests a C++ library
361      incompatibility).  Precise cause, precise platform description or
362      solution are not known.
363
364      Note that this only happens on some computers with the said
365      platform.
366
367 *GUILE
368      A binary RPM of Guile 1.3 has been distributed from the LilyPond
369      ftp site.  This binary was made in RedHat 5.x, and it will fail if
370      this RPM is used with RedHat 6.x.
371
372 *libg++ 2.7
373      LilyPond occasionally crashes while parsing the initialisation
374      files.  This is a very obscure bug, and usually entering the
375      commandline differently "fixes" it.
376
377                 lilypond input.ly
378
379      and
380                 lilypond -I. ./input.ly
381      makes a difference
382
383      Typical stacktrace:
384                 SIGSEGV
385                 __libc_malloc (bytes=16384)
386                 ?? ()
387                 yyFlexLexer::yy_create_buffer ()
388                 Includable_lexer::new_input (this=0x8209a00, s={strh_ = {
389
390      This behaviour has been observed with machines that have old libg++
391      versions (LinuxPPC feb '98, RedHat 4.x).
392
393 Solaris:
394 ********
395
396 *Sparc64/Solaris 2.6, GNU make-3.77
397      GNU make-3.77 is buggy on this platform, upgrade to 3.78.1 or
398      newer.
399
400 *Sparc64/Solaris 2.6, ld
401      Not yet resolved.
402
403 AIX
404 ***
405
406 *AIX 4.3 ld
407      The following is from the gcc install/SPECIFIC file.
408              Some versions of the AIX binder (linker) can fail with a
409           relocation    overflow severe error when the -bbigtoc option
410           is used to link    GCC-produced object files into an
411           executable that overflows the TOC. A    fix for APAR IX75823
412           (OVERFLOW DURING LINK WHEN USING GCC AND    -BBIGTOC) is
413           available from IBM Customer Support and from its
414           27service.boulder.ibm.com website as PTF U455193.
415
416           Binutils does not support AIX 4.3 (at least through release
417           2.9). GNU    as and GNU ld will not work properly and one
418           should not configure GCC    to use those GNU utilities. Use
419           the native AIX tools which do    interoperate with GCC.
420
421      add -Wl,-bbigtoc to USER_LDFLAGS, ie:
422               LDFLAGS='-Wl,-bbigtoc' ./configure
423
424 Authors
425 =======
426
427    Han-Wen Nienhuys <hanwen@cs.uu.nl>
428
429    Jan Nieuwenhuizen <janneke@gnu.org>
430
431    In case of problems, please use the mailing list for help.
432
433    Have fun!
434