Skip to content

Commit

Permalink
[chore](macOS) Resolve the issue with missing python program (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 authored Dec 7, 2022
1 parent 48a9166 commit ec2539e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#pragma once

#include <bitset>
#include <stack>

#include "common/logging.h"
#include "vec/aggregate_functions/aggregate_function.h"
Expand Down
14 changes: 1 addition & 13 deletions docs/en/community/developer-guide/fe-idea-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ under the License.
```
mvn clean install -DskipTests
```

If it's MAC M1, run following command

```
mvn clean install -DskipTests -Dos.arch=x86_64
```

You can also use IDE embedded GUI tools to run maven command to generate sources

Expand All @@ -101,13 +95,7 @@ under the License.
If you are developing on the OS which lack of support to run `shell script` and `make` such as Windows, a workround here
is generate codes in Linux and copy them back. Using Docker should also be an option.

5. If it's MAC M1, python may not be found, so create a soft link from python3 to python:

```
ln -s /usr/bin/python3 /usr/bin/python
```

6. If a help document has not been generated, go to the docs directory and run`sh build_help_zip.sh`
5. If a help document has not been generated, go to the docs directory and run`sh build_help_zip.sh`
Then copy help-resource.zip from build to fe/fe-core/target/classes

## 2. Debug
Expand Down
16 changes: 1 addition & 15 deletions docs/zh-CN/community/developer-guide/fe-idea-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,13 @@ JDK1.8+, IntelliJ IDEA
```
如果是mac m1版,则执行:
```
cd fe && mvn clean install -DskipTests -Dos.arch=x86_64
```
或者通过图形界面运行 maven 命令生成
![](/images/gen_code.png)
如果使用windows环境可能会有make命令和sh脚本无法执行的情况 可以通过拷贝linux上的 `fe/fe-core/target/generated-sources` 目录拷贝到相应的目录的方式实现,也可以通过docker 镜像挂载本地目录之后,在docker 内部生成自动生成代码,可以参照编译一节
5. 如果是 mac m1 版,可能会找不到 python,则创建一个 python3 到 python 的软链:
```
ln -s /usr/bin/python3 /usr/bin/python
```
6. 如果还未生成过help文档,需要跳转到docs目录,执行`sh build_help_zip.sh`,
5. 如果还未生成过help文档,需要跳转到docs目录,执行`sh build_help_zip.sh`,
然后将build中的help-resource.zip拷贝到fe/fe-core/target/classes中
## 2.调试
Expand Down
4 changes: 4 additions & 0 deletions fe/fe-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,10 @@ under the License.
<goal>exec</goal>
</goals>
<configuration>
<environmentVariables>
<DORIS_HOME>${doris.home}</DORIS_HOME>
</environmentVariables>
<environmentScript>${doris.home}/env.sh</environmentScript>
<executable>make</executable>
<arguments>
<argument>-C</argument>
Expand Down

0 comments on commit ec2539e

Please sign in to comment.