diff --git a/docs/contributor_guide/source_code_build.md b/docs/contributor_guide/source_code_build.md index 7fa4e57f045ed6af014246c3b587797b12544566..a61ecc4054152f659eef2ba161efbe6b7a5fc4c8 100644 --- a/docs/contributor_guide/source_code_build.md +++ b/docs/contributor_guide/source_code_build.md @@ -40,7 +40,16 @@ :::{tip} -我们在每个代码仓库根目录都提供了一键安装编译工具的脚本 `install_tools.sh`,可选择使用命令 `bash install_tools.sh` 执行安装。 +建议使用推荐的操作系统镜像,在镜像内部安装工具编译。编译工具脚本对环境有一定修改,可能导致原操作系统部分命令不可用。 +编译环境初始化步骤: +1. 下载基础镜像 +arrch64: https://mirrors.tools.huawei.com/openeuler/openEuler-22.03-LTS/docker_img/aarch64/openEuler-docker.aarch64.tar.xz +x86_64: https://mirrors.tools.huawei.com/openeuler/openEuler-22.03-LTS/docker_img/x86_64/openEuler-docker.x86_64.tar.xz +2. 安装工具 +我们在每个代码仓库根目录都提供了一键安装编译工具的脚本 `install_tools.sh`,可在下载源码后将源码挂载到容器中使用命令 `bash install_tools.sh` 安装工具,初始化环境。如果工具检查失败,可以手动输入命令导入环境变量。 +source /etc/profile.d/buildtools-java-maven.sh +source /etc/profile.d/buildtools-go.sh +source /etc/profile.d/python-env.sh :::