You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/07/01 07:23:18 UTC

[GitHub] [incubator-doris] EmmyMiao87 commented on a change in pull request #6056: [DOC]Doris BE development and debugging environment construction

EmmyMiao87 commented on a change in pull request #6056:
URL: https://github.com/apache/incubator-doris/pull/6056#discussion_r662043717



##########
File path: docs/zh-CN/developer-guide/be-vscode-dev.md
##########
@@ -0,0 +1,283 @@
+---
+{
+    "title": "Doris BE开发调试环境 -- vscode",
+    "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.
+-->
+
+# Apache Doris Be 开发调试
+
+## 前期准备工作
+
+**本教程是在 Ubuntu 20.04 下进行的**
+
+1. 下载 doris 源代码
+
+   下载地址为:[apache/incubator-doris: Apache Doris (Incubating) (github.com)](https://github.com/apache/incubator-doris)
+
+2. 安装 GCC 8.3.1+,Oracle JDK 1.8+,Python 2.7+,确认 gcc, java, python 命令指向正确版本, 设置  JAVA_HOME 环境变量
+
+3. 安装其他依赖包
+
+```
+sudo apt install build-essential openjdk-8-jdk maven cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python brotli
+sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
+sudo apt update
+sudo apt install gcc-10 g++-10 
+sudo apt-get install autoconf automake libtool autopoint
+```
+
+4. 安装 openssl-devel
+
+```
+sudo apt install -y openssl-devel
+```
+
+## 编译
+
+以下操作步骤在 /home/zhangfeng 目录下进行
+
+1. 下载源码
+
+```
+git clone https://github.com/apache/incubator-doris.git 
+```
+
+2. 编译第三方依赖包
+
+```
+ cd /home/zhangfeng/incubator-doris/thirdparty

Review comment:
       ```suggestion
    cd /home/incubator-doris/thirdparty
   ```

##########
File path: docs/zh-CN/developer-guide/be-vscode-dev.md
##########
@@ -0,0 +1,283 @@
+---
+{
+    "title": "Doris BE开发调试环境 -- vscode",
+    "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.
+-->
+
+# Apache Doris Be 开发调试
+
+## 前期准备工作
+
+**本教程是在 Ubuntu 20.04 下进行的**
+
+1. 下载 doris 源代码
+
+   下载地址为:[apache/incubator-doris: Apache Doris (Incubating) (github.com)](https://github.com/apache/incubator-doris)
+
+2. 安装 GCC 8.3.1+,Oracle JDK 1.8+,Python 2.7+,确认 gcc, java, python 命令指向正确版本, 设置  JAVA_HOME 环境变量
+
+3. 安装其他依赖包
+
+```
+sudo apt install build-essential openjdk-8-jdk maven cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python brotli
+sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
+sudo apt update
+sudo apt install gcc-10 g++-10 
+sudo apt-get install autoconf automake libtool autopoint
+```
+
+4. 安装 openssl-devel
+
+```
+sudo apt install -y openssl-devel
+```
+
+## 编译
+
+以下操作步骤在 /home/zhangfeng 目录下进行
+
+1. 下载源码
+
+```
+git clone https://github.com/apache/incubator-doris.git 
+```
+
+2. 编译第三方依赖包
+
+```
+ cd /home/zhangfeng/incubator-doris/thirdparty
+ ./build-thirdparty.sh
+```
+
+3. 编译doris产品代码
+
+```
+cd /home/zhangfeng/incubator-doris

Review comment:
       ```suggestion
   cd /home/incubator-doris
   ```

##########
File path: docs/zh-CN/developer-guide/be-vscode-dev.md
##########
@@ -0,0 +1,283 @@
+---
+{
+    "title": "Doris BE开发调试环境 -- vscode",
+    "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.
+-->
+
+# Apache Doris Be 开发调试
+
+## 前期准备工作
+
+**本教程是在 Ubuntu 20.04 下进行的**
+
+1. 下载 doris 源代码
+
+   下载地址为:[apache/incubator-doris: Apache Doris (Incubating) (github.com)](https://github.com/apache/incubator-doris)
+
+2. 安装 GCC 8.3.1+,Oracle JDK 1.8+,Python 2.7+,确认 gcc, java, python 命令指向正确版本, 设置  JAVA_HOME 环境变量
+
+3. 安装其他依赖包
+
+```
+sudo apt install build-essential openjdk-8-jdk maven cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python brotli
+sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
+sudo apt update
+sudo apt install gcc-10 g++-10 
+sudo apt-get install autoconf automake libtool autopoint
+```
+
+4. 安装 openssl-devel
+
+```
+sudo apt install -y openssl-devel
+```
+
+## 编译
+
+以下操作步骤在 /home/zhangfeng 目录下进行
+
+1. 下载源码
+
+```
+git clone https://github.com/apache/incubator-doris.git 
+```
+
+2. 编译第三方依赖包
+
+```
+ cd /home/zhangfeng/incubator-doris/thirdparty
+ ./build-thirdparty.sh
+```
+
+3. 编译doris产品代码
+
+```
+cd /home/zhangfeng/incubator-doris
+./build.sh
+```
+
+注意:这个编译有以下几条指令:
+
+```
+./build.sh  #同时编译be 和fe
+./build.sh  --be #只编译be
+./build.sh  --fe #只编译fe
+./build.sh  --fe --be#同时编译be fe
+./build.sh  --fe --be --clean#删除并同时编译be fe
+./build.sh  --fe  --clean#删除并编译fe
+./build.sh  --be  --clean#删除并编译be
+./build.sh  --be --fe  --clean#删除并同时编译be fe
+```
+
+如果不出意外,应该会编译成功,最终的部署文件将产出到  /home/zhangfeng/incubator-doris/output/ 目录下。如果还遇到其他问题,可以参照 doris 的安装文档 http://doris.apache.org。

Review comment:
       ```suggestion
   如果不出意外,应该会编译成功,最终的部署文件将产出到  /home/incubator-doris/output/ 目录下。如果还遇到其他问题,可以参照 doris 的安装文档 http://doris.apache.org。
   ```




-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org