# 搭建主机环境

Source: [https://docs.qualcomm.com/doc/80-70015-265Y/topic/setup-host-env.html](https://docs.qualcomm.com/doc/80-70015-265Y/topic/setup-host-env.html)

部署主机以进行编译和安装操作。

**前提条件：**
- 确保 Ubuntu 22.04 主机符合[主机要求](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254/github_workflow_unregistered_users.html#host-machine-requirements)，机器人 SDK 需要额外的 50 GB
                    磁盘空间。

**步骤：**

1. 按照 [Ubuntu 主机配置](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254/github_workflow_unregistered_users.html#build-with-standalone-commands)中的描述完成以下任务：

    1. 安装依赖软件包。
    2. 搭建本地环境。
    3. 更新 git 配置。
2. 默认情况下，将 `/bin/sh` 符号链接更改为指向 `bash`。

        sudo ln -sf /bin/bash /bin/shCopy to clipboard
3. 从 [Qualcomm manifest](https://github.com/quic-yocto/qcom-manifest) 下载 Repo 工具。

Note: 
            
有关虚拟机 (VM) 编译支持，参见 [Qualcomm Linux 虚拟机搭建指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-41/)。

**Parent Topic:** [编译和安装](https://docs.qualcomm.com/doc/80-70015-265Y/topic/advanced-usage.html)

Last Published: Dec 05, 2024

[Previous Topic
编译和安装](https://docs.qualcomm.com/bundle/publicresource/80-70015-265Y/topics/advanced-usage.md) [Next Topic
编译软件](https://docs.qualcomm.com/bundle/publicresource/80-70015-265Y/topics/build-the-software_4_1.md)