Next: , Previous: , Up: 安装   [Contents][Index]


2.2 设置后台进程

During installation, the build daemon that must be running to use Guix has already been set up and you can run guix commands in your terminal program, see 入门:

guix build hello

If this runs through without error, feel free to skip this section. You should continue with the following section, 设置应用程序.

However, now would be a good time to replace outdated daemon versions, tweak it, perform builds on other machines (see 使用任务下发设施), or start it manually in special environments like “chroots” (see 改变目录进入现有系统) or WSL (not needed for WSL images created with Guix, see wsl2-image-type). If you want to know more or optimize your system, this section is worth reading.

构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即构建后台进程。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,guix packageguix build之类的命令行工具通过和这个后台进程通信(通过远程过程调用)来指示它该做什么。

The following sections explain how to prepare the build daemon’s environment. See substitutes for how to allow the daemon to download pre-built binaries.