[chore](macOS) Resolve the issue with missing python program (#14864)

This commit is contained in:
Adonis Ling
2022-12-07 15:30:12 +08:00
committed by GitHub
parent 48a9166aa4
commit ec2539e2a3
4 changed files with 7 additions and 28 deletions

View File

@ -22,6 +22,7 @@
#pragma once
#include <bitset>
#include <stack>
#include "common/logging.h"
#include "vec/aggregate_functions/aggregate_function.h"

View File

@ -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
@ -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

View File

@ -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.调试

View File

@ -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>