mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
[docs] Sync zh/development/build-osx.md from EN (#12071)
This commit is contained in:
parent
41fed28403
commit
f0e715ade1
@ -6,13 +6,13 @@ ClickHouse 支持在 Mac OS X 10.12 版本中编译。若您在用更早的操
|
||||
## 安装 Homebrew {#an-zhuang-homebrew}
|
||||
|
||||
``` bash
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
```
|
||||
|
||||
## 安装编译器,工具库 {#an-zhuang-bian-yi-qi-gong-ju-ku}
|
||||
|
||||
``` bash
|
||||
brew install cmake ninja gcc icu4c mariadb-connector-c openssl libtool gettext
|
||||
$ brew install cmake ninja libtool gettext
|
||||
```
|
||||
|
||||
## 拉取 ClickHouse 源码 {#la-qu-clickhouse-yuan-ma}
|
||||
@ -27,11 +27,11 @@ cd ClickHouse
|
||||
## 编译 ClickHouse {#bian-yi-clickhouse}
|
||||
|
||||
``` bash
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_CXX_COMPILER=`which g++-8` -DCMAKE_C_COMPILER=`which gcc-8`
|
||||
ninja
|
||||
cd ..
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang`
|
||||
$ ninja
|
||||
$ cd ..
|
||||
```
|
||||
|
||||
## 注意事项 {#zhu-yi-shi-xiang}
|
||||
|
Loading…
Reference in New Issue
Block a user