LilyPond – 每一个人的五线谱: Unix

## Unix

Note: LilyPond is a text-based music engraver; it is more similar to a programming language than a graphical score editing program. Before downloading LilyPond, please read about our 文本输入.

### Generic Packages or Distribution-Specific Packages?

Many distributions include LilyPond in their normal package system. These versions are easier to install and uninstall than the generic packages, but they may be older. If you wish to use our generic packages, please uninstall the official version from your system using the normal package manager for your distribution. See your distribution’s documentation about how to use their package manager.

### Generic Packages

#### 下载

- Linux x86: LilyPond 2.15.0-1

  (if in doubt, use this)

- Linux 64: LilyPond 2.14.0-1
- Linux PPC: LilyPond 2.14.0-1
- FreeBSD i386: LilyPond 2.14.0-1
- FreeBSD amd64: LilyPond 2.14.0-1

#### 安装

In the shell, type:

>     cd PATH-TO-DOWNLOAD-DIRECTORY
>     sh lilypond-2.14.0-OS-TYPE.sh

#### 卸载

In the shell, type:

>     uninstall-lilypond

### Compiling a file

Note: These instructions assume that you are familiar with command-line programs. If you are using any of the programs described in Easier editing, please consult the documentation for those programs if you have any problems compiling a file.

#### Step 1. Create your ‘`.ly`’ file

Create a text file called ‘`test.ly`’ and enter:

>     \version "2.14.0"
>     {
>       c' e' g' e'
>     }

#### Step 2. Compile (with command-line)

To process ‘`test.ly`’, type the following at the command prompt:

>     lilypond test.ly

You will see something resembling:

>     GNU LilyPond 2.14.0
>     Processing `test.ly'
>     Parsing...
>     Interpreting music...
>     Preprocessing graphical objects...
>     Solving 1 page-breaking chunks...[1: 1 pages]
>     Drawing systems...
>     Layout output to `test.ps'...
>     Converting to `./test.pdf'...

#### Step 3. View output

You may view or print the resulting ‘`test.pdf`’.

### Distribution-specific Packages

Please use your distribution’s package manager to install or upgrade to these versions.

- Fedora: LilyPond 2.12.3
- Ubuntu: LilyPond 2.12.2
- Slackware: LilyPond 2.12.3
- Debian: LilyPond 2.12.2
- openSUSE: LilyPond 2.12.3

### Legalese

All logos and product images are copyright and trademark acknowledged.

Tux the Linux Penguin was created by lewing@isc.tamu.edu with the Gnu Image Manipulation Program.

The FreeBSD logo is a registered trademark of The FreeBSD Foundation.

其它语言：English, česky, deutsch, español, français, magyar, italiano, 日本語, nederlands。

### Validation

非常感谢 webdev.nl 提供 `lilypond.org` 的主机空间。