> For the complete documentation index, see [llms.txt](https://mixdao.gitbook.io/dfinity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mixdao.gitbook.io/dfinity/san-shou-ba-shou/7.-gu-zhang-pai-chu/shi-yong-xu-ni-ji-shi-gou-jian-shi-bai.md).

# 使用虚拟机时构建失败

如果您在Ubuntu或CentOS上使用虚拟机运行dfx，则当您尝试运行dfx build命令时，可能会看到一条错误消息，如下所示：

```
Building hello...
An error occurred:
Io(
 Os {
 code: 2,
 kind: NotFound,
 message: "No such file or directory",
 },
)
```
