LilyPond – 人人的乐谱软件: Unix

## Unix

注意：LilyPond 是一个 基于文本 的音乐雕版印刷软件；和一般图形界面的打谱软件相比，LilyPond 倒有点像一门编程语言。在您下载 LilyPond 之前，请先进一步了解我们的文本输入。

### 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

#### 下载

- GNU/Linux x86: LilyPond 2.22.2-1
- GNU/Linux 64: LilyPond 2.22.2-1

#### 安装

In the shell, type:

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

#### 卸载

In the shell, type:

>     uninstall-lilypond

#### Help

In the shell, type:

>     sh lilypond-2.22.2-OS-TYPE.sh --help

### Compiling a file

注意：These instructions assume that you are familiar with command-line programs. If you are using any of the programs described in 编辑更简单, consult the documentation for those programs should you have any problems.

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

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

>     \version "2.22.2"
>     {
>       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.22.2
>     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'...
>     Success: compilation successfully completed

#### Step 3. View output

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

### 各大发行版专用的软件包

请使用您的发行版的软件包管理器，来安装或者升级到以下这些版本。

- Fedora: LilyPond 2.14.2
- Ubuntu: LilyPond 2.14.2
- Slackware: LilyPond 2.14.2
- Debian: LilyPond 2.12.3
- 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.

### Validation