[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Requirements for running LilyPond ] | [ Up : Requirements ] | [ Fedora > ] |
4.2.2 Requirements for compiling LilyPond
This section contains instructions on how to quickly and easily get all the software packages required to build LilyPond.
Most of the more popular Linux distributions only require a few simple commands to download all the software needed. For others, there is an explicit list of all the individual packages (as well as where to get them from) for those that are not already included in your distributions’ own repositories.
Additional software packages are necessary to compile LilyPond’s documentation from its sources; this gets handled in a later section.
Fedora | ||
Linux Mint | ||
OpenSUSE | ||
Ubuntu | ||
Other |
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Requirements for compiling LilyPond ] | [ Up : Requirements for compiling LilyPond ] | [ Linux Mint > ] |
Fedora
The following instructions were tested on ‘Fedora’ versions 22 & 23 and will download all the software required to both compile LilyPond and build the documentation.
-
Download and install all the LilyPond build-dependencies (approximately
700MB);
sudo dnf builddep lilypond --nogpgcheck
-
Download and install additional ‘build’ tools required for compiling;
sudo dnf install autoconf gcc-c++
-
Download
texi2html 1.82
directly from: http://download.savannah.gnu.org/releases/texi2html/texi2html-1.82.tar.gz;texi2html
is only required if you intend to compile LilyPond’s own documentation (e.g., to help with any document writing). The version available in the Fedora repositories is too new and will not work. Extract the files into an appropriate location and then run the commands;./configure make sudo make install
This should install
texi2html 1.82
into/usr/local/bin
, which will normally take priority over/usr/bin
where the later, pre-installed versions gets put. Now verify that your operating system is able to see the correct version oftexi2html
.texi2html --version
-
Although not ‘required’ to compile LilyPond, if you intend to
contribute to LilyPond (codebase or help improve the documentation) then
it is recommended that you also need to install
git
.sudo dnf install git
Also see Working with source code.
Note: By default, when building LilyPond’s documentation,
pdfTeX is used. However ligatures (fi, fl, ff, etc.) may not
be printed in the PDF output. In this case XeTeX can be used instead.
Download and install the texlive-xetex
package.
sudo dnf install texlive-xetex
The scripts used to build the LilyPond documentation will use XeTeX instead of pdfTeX to generate the PDF documents if it is available. No additional configuration is required.
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Fedora ] | [ Up : Requirements for compiling LilyPond ] | [ OpenSUSE > ] |
Linux Mint
The following instructions were tested on ‘Linux Mint 17.1’ and ‘LMDE - Betsy’ and will download all the software required to both compile LilyPond and build the documentation..
-
Enable the sources repository;
- Using the Software Sources GUI (located under Administration).
- Select Official Repositories.
- Check the Enable source code repositories box under the Source Code section.
- Click the Update the cache button and when it has completed, close the Software Sources GUI.
-
Download and install all the LilyPond build-dependencies (approximately
200MB);
sudo apt-get build-dep lilypond
-
Download and install additional ‘build’ tools required for compiling;
sudo apt-get install autoconf fonts-texgyre texlive-lang-cyrillic
-
Although not ‘required’ to compile LilyPond, if you intend to
contribute to LilyPond (codebase or help improve the documentation) then
it is recommended that you also need to install
git
.sudo apt-get install git
Also see Working with source code.
Note: By default, when building LilyPond’s documentation,
pdfTeX is used. However ligatures (fi, fl, ff, etc.) may not
be printed in the PDF output. In this case XeTeX can be used instead.
Download and install the texlive-xetex
package.
sudo apt-get install texlive-xetex
The scripts used to build the LilyPond documentation will use XeTeX instead of pdfTeX to generate the PDF documents if it is available. No additional configuration is required.
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Linux Mint ] | [ Up : Requirements for compiling LilyPond ] | [ Ubuntu > ] |
OpenSUSE
The following instructions were tested on ‘OpenSUSE 13.2’ and will download all the software required to both compile LilyPond and build the documentation.
-
Add the sources repository;
sudo zypper addrepo -f \ "http://download.opensuse.org/source/distribution/13.2/repo/oss/" sources
-
Download and install all the LilyPond build-dependencies (approximately
680MB);
sudo zypper source-install lilypond
-
Download and install additional ‘build’ tools required for compiling;
sudo zypper install make
-
Although not ‘required’ to compile LilyPond, if you intend to
contribute to LilyPond (codebase or help improve the documentation) then
it is recommended that you also need to install
git
.sudo zypper install git
Also see Working with source code.
Note: By default, when building LilyPond’s documentation,
pdfTeX is used. However ligatures (fi, fl, ff, etc.) may not
be printed in the PDF output. In this case XeTeX can be used instead.
Download and install the texlive-xetex
package.
sudo zypper install texlive-xetex
The scripts used to build the LilyPond documentation will use XeTeX instead of pdfTeX to generate the PDF documents if it is available. No additional configuration is required.
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < OpenSUSE ] | [ Up : Requirements for compiling LilyPond ] | [ Other > ] |
Ubuntu
The following commands were tested on Ubuntu versions 14.04 LTS
,
14.10
and 15.04
and will download all the software
required to both compile LilyPond and build the documentation.
-
Download and install all the LilyPond build-dependencies (approximately
200MB);
sudo apt-get build-dep lilypond
-
Download and install additional ‘build’ tools required for compiling;
sudo apt-get install autoconf fonts-texgyre texlive-lang-cyrillic
-
Although not ‘required’ to compile LilyPond, if you intend to
contribute to LilyPond (codebase or help improve the documentation) then
it is recommended that you also need to install
git
.sudo apt-get install git
Also see Working with source code.
Note: By default, when building LilyPond’s documentation,
pdfTeX is used. However ligatures (fi, fl, ff, etc.) may not
be printed in the PDF output. In this case XeTeX can be used instead.
Download and install the texlive-xetex
package.
sudo apt-get install texlive-xetex
The scripts used to build the LilyPond documentation will use XeTeX instead of pdfTeX to generate the PDF documents if it is available. No additional configuration is required.
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Ubuntu ] | [ Up : Requirements for compiling LilyPond ] | [ Requirements for building documentation > ] |
Other
The following software packages are required to compile LilyPond, in addition to the run-time packages (see Requirements for running LilyPond).
- GNU Autoconf
- pkg-config
-
GNU Bison
Use version 2.4.1 or newer. -
Compiler with support for C++14
Version 5 or newer of the GNU Compiler Collection and version 3.5 or newer of Clang should work. -
Flex
Use version 2.5.29 or newer. -
FontForge
Use version 20120731 or newer with enabled Python 3 scripting; it must also be compiled with the ‘--enable-double’ switch, else this can lead to inaccurate intersection calculations, which in turn cause poorly-rendered glyphs in the output. -
GNU gettext
Use version 0.17 or newer. -
GNU Make
Use version 3.78 or newer. -
MetaFont
The MetaFont binary (usually calledmf-nowin
,mf
,mfw
, ormfont
) and its support files are normally packaged along with TeX. Most GNU/Linux and other free software distributions already provide packages for TeX Live, see above. TeX Live can can also be installed separately; it contains stand-alone binaries for most platforms. -
MetaPost
Thempost
binary is also usually packaged with TeX. -
Perl
Use version 5.6.1 or newer. -
Texinfo
Use version 6.1 or newer. -
Type 1 utilities
We needt1asm
. Use version 1.33 or newer.
[ << Compiling ] | [Top][Contents] | [ Documentation work >> ] |
[ < Ubuntu ] | [ Up : Requirements for compiling LilyPond ] | [ Requirements for building documentation > ] |