You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ad...@apache.org on 2023/01/16 16:09:15 UTC

[doris] branch master updated: [docs](compilation) Update the post: Compilation on macOS (#15970)

This is an automated email from the ASF dual-hosted git repository.

adonisling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new be3482e6d6 [docs](compilation) Update the post: Compilation on macOS (#15970)
be3482e6d6 is described below

commit be3482e6d6d7812509fd92601ce88b488dcddcf6
Author: Adonis Ling <ad...@gmail.com>
AuthorDate: Tue Jan 17 00:09:04 2023 +0800

    [docs](compilation) Update the post: Compilation on macOS (#15970)
    
    Add more details about using the pre-built third-party libraries.
---
 .../en/docs/install/source-install/compilation-mac.md | 19 ++++++++++++++++---
 .../docs/install/source-install/compilation-mac.md    | 19 ++++++++++++++++---
 2 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/docs/en/docs/install/source-install/compilation-mac.md b/docs/en/docs/install/source-install/compilation-mac.md
index 56b0a2d5b0..a3a6ef236f 100644
--- a/docs/en/docs/install/source-install/compilation-mac.md
+++ b/docs/en/docs/install/source-install/compilation-mac.md
@@ -51,13 +51,26 @@ This topic is about how to compile Doris from source with macOS (both x86_64 and
 
 1. The [Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation) page contains the source code of all third-party libraries. You can download [doris-thirdparty-source.tgz](https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-source.tgz) to obtain them.
 
-2. If your macOS is powered by _**Intel**_ chips, you can download the _**precompiled**_ third party library [doris-thirdparty-prebuilt-darwin-x86_64.tar.xz](https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz) from the [Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation) page. You may refer to the following commands:
+2. You can download the _**precompiled**_ third party library from the [Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation) page. You may refer to the following commands:
     ```shell
     cd thirdparty
+    rm -rf installed
+
+    # Intel chips
     curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
-        -o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
-    tar -xvf doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
+        -o - | tar -Jxf -
+
+    # Apple Silicon chips
+    curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-arm64.tar.xz \
+        -o - | tar -Jxf -
+
+    # Make sure that protoc and thrift can run successfully.
+    cd installed/bin
+
+    ./protoc --version
+    ./thrift --version
     ```
+3. When running `protoc` or `thrift`, you may meet an error which says **the app can not be opened because the developer cannot be verified**. Go to `Security & Privacy`. Click the `Open Anyway` button in the `General` pane to confirm your intent to open the app. See [https://support.apple.com/en-us/HT202491](https://support.apple.com/en-us/HT202491).
 
 ## Start-up
 
diff --git a/docs/zh-CN/docs/install/source-install/compilation-mac.md b/docs/zh-CN/docs/install/source-install/compilation-mac.md
index 3e679d355a..4f1365ed02 100644
--- a/docs/zh-CN/docs/install/source-install/compilation-mac.md
+++ b/docs/zh-CN/docs/install/source-install/compilation-mac.md
@@ -51,13 +51,26 @@ under the License.
 
 1. [Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation)页面有所有第三方库的源码,可以直接下载[doris-thirdparty-source.tgz](https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-source.tgz)获得。
 
-2. 如果平台使用的是 _**Intel**_ 芯片,也可以在[Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation)页面直接下载预编译好的第三方库[doris-thirdparty-prebuilt-darwin-x86_64.tar.xz](https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz),省去编译第三方库的过程,参考下面的命令。
+2. 可以在[Apache Doris Third Party Prebuilt](https://github.com/apache/doris-thirdparty/releases/tag/automation)页面直接下载预编译好的第三方库,省去编译第三方库的过程,参考下面的命令。
     ```shell
     cd thirdparty
+    rm -rf installed
+
+    # Intel 芯片
     curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
-        -o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
-    tar -xvf doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
+        -o - | tar -Jxf -
+
+    # Apple Silicon 芯片
+    curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-arm64.tar.xz \
+        -o - | tar -Jxf -
+
+    # 保证protoc和thrift能够正常运行
+    cd installed/bin
+
+    ./protoc --version
+    ./thrift --version
     ```
+3. 运行`protoc`和`thrift`的时候可能会遇到**无法打开,因为无法验证开发者**的问题,可以到前往`安全性与隐私`。点按`通用`面板中的`仍要打开`按钮,以确认打算打开该二进制。参考[https://support.apple.com/zh-cn/HT202491](https://support.apple.com/zh-cn/HT202491)。
 
 ## 启动
 


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