]> git.donarmstrong.com Git - lilypond.git/blob - INSTALL.text
485136c65905b3a8c0c626645e0fbe16b3eb0787
[lilypond.git] / INSTALL.text
1
2
3
4 INSTALL(1)            LilyPond documentation           INSTALL(1)
5
6
7 N\bN\bN\bNA\bA\bA\bAM\bM\bM\bME\bE\bE\bE
8        INSTALL - installing GNU LilyPond
9
10 D\bD\bD\bDE\bE\bE\bES\bS\bS\bSC\bC\bC\bCR\bR\bR\bRI\bI\bI\bIP\bP\bP\bPT\bT\bT\bTI\bI\bI\bIO\bO\bO\bON\bN\bN\bN
11        This page documents installation and compilation of GNU
12        LilyPond
13
14 A\bA\bA\bAB\bB\bB\bBS\bS\bS\bST\bT\bT\bTR\bR\bR\bRA\bA\bA\bAC\bC\bC\bCT\bT\bT\bT
15        You do something which looks remotely like
16
17                configure
18                make
19                make install
20                tar -C /usr/lib/texmf/fonts/source/ -zxf musixtex-T73.tgz 'mf/*'
21
22        The detailed instructions follow here.
23
24
25 P\bP\bP\bPR\bR\bR\bRE\bE\bE\bER\bR\bR\bRE\bE\bE\bEQ\bQ\bQ\bQU\bU\bU\bUI\bI\bI\bIS\bS\bS\bSI\bI\bI\bIT\bT\bT\bTE\bE\bE\bES\bS\bS\bS
26        For compilation you need.
27
28        +\bo    A Unix system with GNU tools. GNU LilyPond is known
29             to run on these unices: Linux, AIX, Digital Unix and
30             Solaris.
31
32             If you have the Cygnus WINDOWS32 port of the GNU
33             utils, it will even work in Windows NT/95, but we
34             don't promise to support it.
35
36        +\bo    GNU C++ v2.7 or better, with libg++ installed.
37             Version 2.7.2 or better recommended.
38
39        +\bo    GNU make.
40
41        +\bo    Flex (2.5.1 or better).
42
43        +\bo    Bison. (Version 1.25 or better)
44
45 R\bR\bR\bRU\bU\bU\bUN\bN\bN\bNN\bN\bN\bNI\bI\bI\bIN\bN\bN\bNG\bG\bG\bG
46        GNU LilyPond does use a lot of resources. For operation
47        you need the following:
48
49        +\bo    TeX
50
51        +\bo    The MusixTeX fonts (I included those found in
52             MusixTeX T.73). Beware, the clef symbol seems to have
53             changed its position in some versions, (notably
54             Egler's, a.k.a. OpusTeX). The MusixTeX fonts are
55             included in MusixTeX (T73 or better), which can be
56             had from any CTAN site, e.g. at
57
58        ftp://ftp.shsu.edu/tex-archive/macros/musixtex/taupin
59
60
61
62
63
64 1/Aug/97                  LilyPond 0.1.0                        1
65
66
67
68
69
70 INSTALL(1)            LilyPond documentation           INSTALL(1)
71
72
73        ftp://ftp.tex.ac.uk/tex-archive/macros/musixtex/taupin
74
75        ftp://ftp.dante.de/tex-archive/macros/musixtex/taupin
76
77                 You only need the contents of the _\bm_\bf_\b/
78                 subdirectory of the package. The primary site of
79                 the Taupin version is ftp://hprib.lps.u-
80                 psud.fr/pub/music_zips/musixtex.zip
81
82                 Andreas Egler's version of MusixTeX, now called
83                 OpusTeX, will also work. Andreas moved some
84                 characters around in the fonts, so you have to
85                 edit the definitions in tex/eglerdefs.tex (patch
86                 appreciated)
87
88 R\bR\bR\bRE\bE\bE\bEC\bC\bC\bCO\bO\bO\bOM\bM\bM\bMM\bM\bM\bME\bE\bE\bEN\bN\bN\bND\bD\bD\bDE\bE\bE\bED\bD\bD\bD
89        Although not strictly necessary, these are recommended to
90        have.
91
92        +\bo         Perl.  Most scripts are written in Perl. Most
93                  documentation was created with the perl's Plain
94                  Old Documentation.
95
96        +\bo         GNU find
97
98        +\bo         A fast computer (a full page of music typically
99                  takes 1 minute on my 486/133, using the
100                  -\b-\b-\b--\b-\b-\b-e\be\be\ben\bn\bn\bna\ba\ba\bab\bb\bb\bbl\bl\bl\ble\be\be\be-\b-\b-\b-c\bc\bc\bch\bh\bh\bhe\be\be\bec\bc\bc\bck\bk\bk\bki\bi\bi\bin\bn\bn\bng\bg\bg\bg compile. It's lot slower than
101                  most MusiXTeX preprocessors)
102
103 C\bC\bC\bCO\bO\bO\bON\bN\bN\bNF\bF\bF\bFI\bI\bI\bIG\bG\bG\bGU\bU\bU\bUR\bR\bR\bRI\bI\bI\bIN\bN\bN\bNG\bG\bG\bG a\ba\ba\ban\bn\bn\bnd\bd\bd\bd C\bC\bC\bCO\bO\bO\bOM\bM\bM\bMP\bP\bP\bPI\bI\bI\bIL\bL\bL\bLI\bI\bI\bIN\bN\bN\bNG\bG\bG\bG
104        to install GNU LilyPond, simply type:
105
106                configure
107                make install
108
109        This will install the following files:
110
111                /usr/local/man/man1/mi2mu.1
112                /usr/local/man/man1/convert-mudela.1
113                /usr/local/man/man1/mudela-book.1
114                /usr/local/man/man1/lilypond.1
115                /usr/local/lib/libflower.{so,a}
116                /usr/local/bin/lilypond
117                /usr/local/bin/mi2mu
118                /usr/local/share/lilypond/*
119                /usr/lib/texmf/texmf/tex/lilypond/*
120
121        The TeX include directory is detected dynamically, but it
122        can be adjusted with -\b-\b-\b--\b-\b-\b-e\be\be\ben\bn\bn\bna\ba\ba\bab\bb\bb\bbl\bl\bl\ble\be\be\be-\b-\b-\b-t\bt\bt\bte\be\be\bex\bx\bx\bx-\b-\b-\b-p\bp\bp\bpr\br\br\bre\be\be\bef\bf\bf\bfi\bi\bi\bix\bx\bx\bx and -\b-\b-\b--\b-\b-\b-e\be\be\ben\bn\bn\bna\ba\ba\bab\bb\bb\bbl\bl\bl\ble\be\be\be-\b-\b-\b-t\bt\bt\bte\be\be\bex\bx\bx\bx-\b-\b-\b-
123        d\bd\bd\bdi\bi\bi\bir\br\br\br. The above assumes that you are root and have the GNU
124        development tools, and your make is GNU make.  If this is
125        not the case, you can adjust your environment variables to
126        your taste:
127
128
129
130 1/Aug/97                  LilyPond 0.1.0                        2
131
132
133
134
135
136 INSTALL(1)            LilyPond documentation           INSTALL(1)
137
138
139                export CPPFLAGS="-I /home/me/my_include -DWEIRD_FOOBAR"
140                configure
141
142        CPPFLAGS are the preprocessor flags.
143
144        the configure script is Cygnus configure, and it will
145        accept -\b-\b-\b--\b-\b-\b-h\bh\bh\bhe\be\be\bel\bl\bl\blp\bp\bp\bp. If you are not root, you will probably have
146        to make it with
147
148                configure --prefix=/home/me_myself_and_I/
149
150        In this case, you will have to set MFINPUTS, and TEXINPUTS
151        accordingly.
152
153        If you want to install GNU LilyPond in _\b/_\bu_\bs_\br_\b/_\bl_\bo_\bc_\ba_\bl, and
154        your TeX has no default hooks for local stuff (mine is
155        broken too), you can do:
156
157                configure --prefix=/usr/local --enable-tex-prefix=/usr/lib/texmf
158
159        Since GNU LilyPond currently is beta, you are advised to
160        also use
161
162                --enable-debugging
163                --enable-checking
164
165        other options include:
166
167        --enable-shared
168                 Make a shared library (gnu/linux, solaris (?)
169                 only )
170
171        --enable-printing
172                 Enable debugging print routines (lilypond -\b-\b-\b-d\bd\bd\bd
173                 option)
174
175        --enable-optimise
176                 Set maximum optimisation: compile with -\b-\b-\b-O\bO\bO\bO2\b2\b2\b2
177
178        --enable-profiling
179                 Compile with support for profiling
180
181        --enable-tex-prefix
182                 Set the directory where TeX and Metafont live
183
184        --enable-tex-dir
185                 Set then directory TeX input is in (detected as a
186                 subdir of tex-prefix)
187
188        --enable-mf-dir
189                 Set then directory mf input is in (idem)
190                 [obsolete]
191
192                 All options are documented in the _\bc_\bo_\bn_\bf_\bi_\bg_\bu_\br_\be help
193
194
195
196 1/Aug/97                  LilyPond 0.1.0                        3
197
198
199
200
201
202 INSTALL(1)            LilyPond documentation           INSTALL(1)
203
204
205                 The option -\b-\b-\b--\b-\b-\b-e\be\be\ben\bn\bn\bna\ba\ba\bab\bb\bb\bbl\bl\bl\ble\be\be\be-\b-\b-\b-o\bo\bo\bop\bp\bp\bpt\bt\bt\bti\bi\bi\bim\bm\bm\bmi\bi\bi\bis\bs\bs\bse\be\be\be is recommended for
206                 Real Life usage.
207
208                 If you do
209
210                         make all
211
212                 everything will be compiled, but nothing will be
213                 installed.  The resulting binaries can be found
214                 in the subdirectories _\bo_\bu_\bt_\b/ (which contain all
215                 files generated during compilation).
216
217 I\bI\bI\bIN\bN\bN\bNS\bS\bS\bST\bT\bT\bTA\bA\bA\bAL\bL\bL\bLL\bL\bL\bLI\bI\bI\bIN\bN\bN\bNG\bG\bG\bG
218        If you have done a successful make, then a simple
219
220                make install
221
222        should do the trick.
223
224        Install the musixtex fonts in a directory which TeX and MF
225        knows (if you are root, look for a directory which
226        contains the directories with AMS and CM source (*.mf)
227        files. Create a subdir lilypond or musixtex and copy the
228        fonts into that). Do not forget to rehash TeX (if
229        applicable)
230
231        Example: my fonts are in
232        _\b/_\bu_\bs_\br_\b/_\bl_\bo_\bc_\ba_\bl_\b/_\bl_\bi_\bb_\b/_\bt_\be_\bx_\bf_\bo_\bn_\bt_\bs_\b/_\bm_\bu_\bs_\bi_\bx_\bt_\be_\bx_\b/, and I have a symlink
233        pointing to that in
234        _\b/_\bu_\bs_\br_\b/_\bl_\bi_\bb_\b/_\bt_\be_\bx_\bm_\bf_\b/_\bt_\be_\bx_\bm_\bf_\b/_\bf_\bo_\bn_\bt_\bs_\b/_\bs_\bo_\bu_\br_\bc_\be_\b/_\bp_\bu_\bb_\bl_\bi_\bc_\b/. After I copied
235        the files, I ran "texhash"
236
237 C\bC\bC\bCA\bA\bA\bAV\bV\bV\bVE\bE\bE\bEA\bA\bA\bAT\bT\bT\bTS\bS\bS\bS
238        +\bo         The -O2 option to gcc triggers a gcc bug on DEC
239                  Alpha in dstream.cc. You should turn off this
240                  flag for this file.
241
242 E\bE\bE\bEX\bX\bX\bXA\bA\bA\bAM\bM\bM\bMP\bP\bP\bPL\bL\bL\bLE\bE\bE\bE
243        This is what I type in my xterm:
244
245                lilypond someinput.ly
246                tex lelie.tex
247                xdvi test&
248
249        This is what the output looks like over here:
250
251
252
253
254
255
256
257
258
259
260
261
262 1/Aug/97                  LilyPond 0.1.0                        4
263
264
265
266
267
268 INSTALL(1)            LilyPond documentation           INSTALL(1)
269
270
271                GNU LilyPond 0.0.78 #4/FlowerLib 1.1.24 #0
272                Parsing ... [/home/hw/share/lilypond/init//
273                        <..etc..>
274                        init//performer.ly]]][input/kortjakje.ly]
275                Creating elements ...[8][16][24][25]
276                Preprocessing elements...
277                Calculating column positions ... [14][25]
278                Postprocessing elements...
279                TeX output to lelie.tex ...
280                Creating MIDI elements ...MIDI output to lelie.midi ...
281
282                hw:~/musix/spacer$ xdvi lelie&
283                [1] 855
284
285        Check out the input files, some of them have comments
286        Please refer to the man page for more information.
287
288 R\bR\bR\bRE\bE\bE\bED\bD\bD\bDH\bH\bH\bHA\bA\bA\bAT\bT\bT\bT L\bL\bL\bLI\bI\bI\bIN\bN\bN\bNU\bU\bU\bUX\bX\bX\bX
289        RedHat Linux users should be able to get a RPM. A spec
290        file is in _\bm_\ba_\bk_\be_\b/_\bo_\bu_\bt_\b/_\bl_\bi_\bl_\by_\bp_\bo_\bn_\bd_\b._\bs_\bp_\be_\bc. You should be able to
291        create an rpm as a normal user. Be sure you have a
292        ~/.rpmrc, and edit the RPM-dir in _\bV_\ba_\br_\bi_\ba_\bb_\bl_\be_\bs_\b._\bm_\ba_\bk_\be. (If you
293        create the RPM as a normal user the permissions will not
294        be set correctly, unfortunately)
295
296 W\bW\bW\bWI\bI\bI\bIN\bN\bN\bND\bD\bD\bDO\bO\bO\bOZ\bZ\bZ\bZE\bE\bE\bE
297        Windows NT:
298
299        you need the cygnus windows32 gnu port development stuff;
300        have a look at http://www.cygnus.com/gnu-win32.
301
302        to make GNU LilyPond under, brr, aargh, shudder..
303        windows32, well, simply type:
304
305                bash configure
306                make windows32
307
308
309 A\bA\bA\bAU\bU\bU\bUT\bT\bT\bTH\bH\bH\bHO\bO\bO\bOR\bR\bR\bRS\bS\bS\bS
310        Han-Wen Nienhuys <hanwen@stack.nl>
311
312        Jan Nieuwenhuizen <jan@digicash.com>
313
314        Have fun!
315
316
317
318
319
320
321
322
323
324
325
326
327
328 1/Aug/97                  LilyPond 0.1.0                        5
329
330