amosbird commented on a change in pull request #7829: URL: https://github.com/apache/incubator-doris/pull/7829#discussion_r789654372
########## File path: docs/zh-CN/installing/compilation-with-ldb-toolchain.md ########## @@ -0,0 +1,116 @@ +--- +{ + "title": "使用 LDB toolchain 编译", + "language": "zh-CN" +} +--- + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +# 使用 LDB toolchain 编译 + +本文档主要介绍如何使用 LDB toolchain 编译 Doris。该方式目前作为 Docker 编译方式的补充,方便没有 Docker 环境的开发者和用户编译 Doris 源码。 + +> 感谢 [Amos Bird](https://github.com/amosbird) 的贡献。 + +## 准备编译环境 + +该方式适用于绝大多数 Linux 发行版(CentOS,Ubuntu 等)。 + +1. 下载 `ldb_toolchain_gen.sh` + + 可以从 [这里](https://github.com/amosbird/ldb_toolchain_gen/releases) 下载最新的 `ldb_toolchain_gen.sh`。该脚本用于生成 ldb toolchain。 + + > 更多信息,可访问 [https://github.com/amosbird/ldb_toolchain_gen](https://github.com/amosbird/ldb_toolchain_gen) + +2. 执行以下命令生成 ldb toolchain + + ``` + sh ldb_toolchain_gen.sh /path/to/ldb_toolchain/ + ``` + + 其中 `/path/to/ldb_toolchain/` 为安装 toolchain 目录。 + + 执行成功后,会在 `/path/to/ldb_toolchain/` 下生成如下目录结构: + + ``` + ├── bin + ├── include + ├── lib + ├── share + ├── test + └── usr + ``` + +3. 下载并安装其他编译组件 + + 1. [Java8](https://doris-thirdparty-repo.bj.bcebos.com/thirdparty/jdk-8u131-linux-x64.tar.gz) + 2. [Apache Maven 3.8.4](https://doris-thirdparty-repo.bj.bcebos.com/thirdparty/apache-maven-3.6.3-bin.tar.gz) + 3. [Node v12.13.0](https://doris-thirdparty-repo.bj.bcebos.com/thirdparty/node-v12.13.0-linux-x64.tar.gz) + + If your environment is somehow minimal, additional packages should be installed before compiling Doris. The following instructions describe how to setup a minimal CentOS 6 box to compile Doris. Other linux distros should be similar. Review comment: I guess the English description is supposed to be removed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org