1 \input texinfo @c -*-texinfo-*-
2 @setfilename installing.info
3 @settitle LilyPond on Windows
6 <!--- @@WEB-TITLE@@=Windows Installation --->
12 @chapter WINDOWS - Installing GNU LilyPond on Windows
14 This document explains how to install the binary release for windows
15 on a Microsoft Windows 95, 98, ME, NT, 2000 or XP machine. Please
16 follow the instructions carefully. If it doesn't work for you, please
17 send a bugreport, following the guidelines in the section on
22 Click @uref{http://cygwin.com/setup.exe, Install Lily now}, run the
23 installer (@file{setup.exe}), and in the Package View dialogue, select
24 LilyPond, found in the Publishing section.
26 If you have any problems, please read the rest of this page.
28 @section Windows binary setup
30 The binary LilyPond setup for Windows is in fact a
31 @uref{http://cygwin.com, Cygwin} installation, including the LilyPond
34 If you run Windows NT, 2000 or XP, please become administrator first
35 (currently, installing as an ordinary user will not work). Download
36 and run @uref{http://cygwin.com/setup.exe, setup.exe}. You will be
37 asked some questions. If you are unsure just click "Next". Do not
38 change the default install directory @file{c:/cygwin}.
40 In the Package View dialogue window, click on the Publishing section
41 to view the available publishing software for Cygwin. Make sure that
42 LilyPond is selected. If this is a new or first installation, click
43 on @emph{Skip} to select.
45 This installs LilyPond, and Cygwin, GUILE, Python, teTeX (MikTeX is not
46 supported). If you already have some of that software under
47 @file{c:/cygwin}, then don't worry: nothing will be installed twice.
49 @subsection Additional software
51 If you install the Cygwin's XFree86 X11 window system, tetex-x11 and
52 ghostscript-x11 packages too, you can view the @code{dvi} output doing
55 LilyPond needs a PostScript/PDF viewer to be really useful. At this
56 time (Sun Aug 11 2002), such software is not available in Cygwin, so
57 you must use native Windows software instead.
62 You can use GSView-2.6. This old package has two advantages. It has
63 gsview and ghostscript bundeled, and it doesn't popup @emph{Register
64 Now|Cancel} windows all the time.
67 @uref{ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/aladdin/gs550/gsv27550.exe,GSView-2.7}
68 (GhostView for Windows), or visit
69 @uref{ftp://ftp.cs.wisc.edu/ghost/ghostgum,ftp.cs.wisc.edu}.
71 @c check/update versions
72 You can also use the newer versions GSView-3.6 and GhostScript-6.50,
73 which can also display PDFs. You get annoying @emph{Register
74 Now|Cancel} popups, though.
77 @uref{ftp://ftp.cs.wisc.edu/ghost/ghostgum/gsv36w32.exe,GSview-3.6}
79 @uref{ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs650/gs650w32.exe,
80 GhostScript-6.50}, or visit the @uref{http://www.cs.wisc.edu/~ghost/,
81 Ghostview and GSview site}.
84 @section Testing LilyPond
86 Open a LilyPond shell (To open a a lilypond shell, click the "GNU
87 LilyPond" or "Cygwin" icon), and type
95 You should see something similar to
100 Usage: lilypond [OPTION]... FILE...
102 Typeset music and or play MIDI from FILE
104 LilyPond is a music typesetter. It produces beautiful sheet music
105 using a high level description file as input. LilyPond is part of
114 Then, prepare a file called @file{foo.ly}, by issuing
120 Enter the following into the file
124 \score @{ \notes @{ c4 ( ) c4 @} @}
128 Close the editor and save the file. Then run the following command.
134 At the end, it should say
137 DVI output to `foo.dvi'...
138 PS output to `foo.ps'...
139 PDF output to `foo.pdf'...
142 If you install the Cygwin's XFree86 X11 window system, tetex-x11 and
143 ghostscript-x11 packages too, you can view the @code{dvi} output doing
144 @code{xdvi test.dvi}. If you have installed a PostScript/PDF viewer,
145 such as @code{GSView} from @uref{http://www.cs.wisc.edu/~ghost},
146 viewing the PS file can be done with:
153 If this works, then you can head to the
154 @uref{../../user/out-www/lilypond/Tutorial.html,Tutorial}
156 Hmm, this only works for 1.5.73-1 installs.
157 Cygwin does not yet have an html documentation index, such as dwww.
158 (@uref{file:///c/cygwin/usr/doc/lilypond-1.5.73-1/html/Documentation/user/out-www/Tutorial.html,
161 to start using LilyPond.
163 @section Removing LilyPond
165 Start @file{setup.exe}, click Next, select "Install from Local
166 Directory". Then click next until you reach "Select packages to
167 install". Click "View". Now, for every package, click on the recycle
168 icon until it says "Uninstall". Then, click Next.
170 (If you find this too tedious, you can also simply remove
171 @file{c:/cygwin}. This also removes the @file{/home/} directories under
172 cygwin (i.e. @file{C:\CYGWIN\HOME}, so make sure that you bring
173 important files in safety first.)
175 @section Troubleshooting
177 For problems and solutions see
178 @uref{http://lilypond.org/wiki?TroubleshootingWindows,Troubleshooting
181 If you have a problem running LilyPond, you should first make sure
182 that you are running the latest version. Chances are, that your
183 problem was already reported and fixed in a newer release. Click
184 @uref{http://cygwin.com/setup.exe, Update Lily now} to check if
185 new software is available.
187 If you subscribe to the @uref{http://cygwin.com/ml/cygwin-announce/,
188 cygwin-announce (archives)} mailing list, see
189 @uref{http://sources.redhat.com/cygwin/lists.html, Cygwin mailing
190 lists}, bottom of page. You'll be notified of new and updated
191 software for Cygwin, including LilyPond.
193 Chances are, that a problem you experience has been noted by others.
194 Cygwin specific problems will be reported to the
195 @uref{http://cygwin.com/ml/cygwin, cygwin-user (archives)} mailing
196 list (@uref{http://sources.redhat.com/cygwin/lists.html, Cygwin mailing
197 lists}, bottom of page).
199 LilyPond specific problems, also concering Cygwin/Windows, are
200 reported and discussed on the
201 @uref{http://mail.gnu.org/pipermail/lilypond-user, lilypond-user
202 (archives)} mailing list.
204 @subsection Setup.exe does not run at all
206 Make sure that you run @uref{http://cygwin.com/setup.exe, this latest
208 This will also work if you were using a setup.exe you donwloaded
209 before from lilypond.org before.
211 If you're sure that you have the very latest version, and it doesn't
212 work, and the @uref{http://cygwin.com/ml/cygwin, cygwin-user archives}
213 do not mention the problem, write to @email{cygwin@@cygwin.com}.
214 Setup is under heavy development, so you may have been unlucky and
215 have dowloaded a buggy version.
217 @subsection ly2dvi:error: filename should not contain spaces
220 @emph{I don't seem to be able to either change this "default" or to point
221 Lilypond to another directory which does not have the space.}
224 ly2dvi:error: filename should not contain spaces: `/usr/bin/Ralph Whedon/foo'
227 @emph{Any ideas what I should do?}
229 Best is to create a new home directory. Start the Cygwin or LilyPond
238 To go there automatically, each time you log in, edit the file
241 /etc/passwd # windows name: c:\cygwin\etc\passwd
245 using vim or wordpad, and change the `/usr/bin/Ralph Whedon/' to
248 @subsection What's this Bash/Cygwin shell?
250 The bash shell is a basic UNIX-like console that we use for the
251 Windows release. Using such an intercompatible shell makes it easier
252 to maintain the Windows release reasonably, notably because it works
253 the same as the normal UNIX setup. Keep in mind that none of the
254 developers are using Windows.
256 Also it is possible to build LilyPond from source with a complete
257 Cygwin install, see @uref{compiling.html,Compiling LilyPond on Windows}.
259 Bash is not very different from the MS-DOS shell, you'll just have to
260 (re-)learn a few commands needed to browse through your hard-drive.
261 Here are some commands you'll definitely be needing.
263 To change folders, the usual @code{cd}
267 cd ../.. # If you type this at startup, you should be in the root
268 # directory. Better do:
273 You'll notice that file names in Bash are written with the slash (/),
274 and not the backslash (\) bar as in MS-DOS and Windows.
278 C:\Win98\Bureau\ ---> /cygdrive/c/Win98/Bureau
281 The equivalent of the MS-DOS dir command is ls -l :
284 ls -l #You'll get the listing of the current folder.
287 To copy a file, use the cp command:
293 For more information, see the
294 @uref{http://www.linuxdoc.org/HOWTO/DOS-Win-to-Linux-HOWTO.html,DOS/Windows
299 @subsection Requirements and DLLs
301 TeTeX and LilyPond depend on a number of library packages, but as it
302 seems, they sometimes do not get selected automagically.
306 requires: ash cygwin ed grep jpeg libkpathsea3 libncurses6 libpng12 tiff
310 requires: bash libguile14 libiconv2 libintl2 libkpathsea3 python
311 tetex-bin, tetex-tiny or tetex-base
314 @multitable @columnfractions .40 .40
315 @item DLL @tab Package
316 @item cygguile-14.dll @tab libguile14
317 @item cygintl-2.dll @tab libintl2
318 @item cygiconv-2.dll @tab libiconv2
319 @item cygltdl-3.dll @tab libltdl3
320 @item cygpcre.dll @tab pcre
321 @item cygpng12.dll @tab libpng12
322 @item cygtiff3.dll @tab tiff
325 Also, the more general info on missing DLLs may be helpful:
327 @uref{http://cygwin.com/faq/faq_4.html#SEC32}
328 @uref{http://cygwin.com/ml/cygwin/2002-01/msg01619.html}
331 @subsection Why don't you fix this?
333 Well, we've tried several times, but we can't reproduce the problem
334 ('It works for me'). If you're experiencing DLL problems, you're much
335 invited to help us find the bug and fix it. You can install the
336 binutils package, and use objdump to find which executable depends on
340 objdump -x <path to download dir>/setup.exe | grep -i dll
341 objdump -x /usr/bin/awk.exe | grep -i dll
342 objdump -x /usr/bin/python.exe | grep -i dll
345 Of course, you should check what version of the offending package you
346 have installed (see @file{/var/log/setup.log} and
347 @file{/var/log/setup.log.full)}.
349 @subsection Check your TeX installation
351 Start a LilyPond shell and run
357 This should print a few lines of information and produce a file
358 @file{sample2e.dvi}. Then run
365 which produces a sample2e.ps, which you can view using @code{gsview32}.
367 When this works correctly, you could resume your attempts with
371 @subsection Bugreports
373 So you have checked by running @uref{http://cygwin.com/setup.exe,
374 Update Lily now} that you run the latest version, and
375 @uref{http://lilypond.org/wiki?TroubleshootingWindows,Troubleshooting
376 Windows} nor @uref{http://cygwin.com/ml/cygwin, cygwin-user
377 (archives)} or @uref{http://mail.gnu.org/pipermail/lilypond-user,
378 lilypond-user (archives)} mentions your problem. It looks like you
381 We can only help you with a problem if you give a full, detailed
382 bugreport. A bugreport includes
385 @item A @emph{precise} description of the problem.
386 @item A full description of your platform (machine type, operating
388 @item All version numbers of relevant software you run.
389 The best way to this is to run
392 sh -x /usr/bin/bug-lilypond-cygwin >& bug.txt
395 and include the file @file{bug.txt}. (If you are running
396 lilypond 1.5.73 or earlier, download
397 @uref{http://lilypond.org/cygwin/bug-lilypond-cygwin,
398 bug-lilypond-cygwin here}.
401 If you have trouble using bug-lilypond-cygwin, you must gather this
402 information by hand. Specifically, we want to see the output of the
413 @item If ly2dvi fails, then please run it as follows and include the
417 ly2dvi --verbose MY-FILE
422 The file @file{bug.txt} should contain information on your system
423 (check that). Send your problem together with @file{bug.txt} to
424 @email{lilypond-user@@gnu.org}.
426 Be sure to turn off HTML email. It is very annoying. For reasons
427 unknown to man, most Windows email clients have that turned on by
430 If you are using Microsoft Outlook (Express), you can send normal
431 plain text messages by clicking through the menus
432 Tools/Options/Send/Mail Sending Format/Plain Text, with options:
435 Set Message format as MIME, set "Encode text using:" to None. Set
436 Automatically wrap text at 70, and > is used to indent original text.
439 Easy instructions for various email clients can be found at
440 @uref{http://helpdesk.rootsweb.com/listadmins/plaintext.html,
441 helpdesk.rootsweb.com}.