Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
dac5889b
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dac5889b
编写于
9月 24, 2019
作者:
I
Ivan Lezhankin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add build instruction
上级
6cc2f8da
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
57 addition
and
6 deletion
+57
-6
docs/en/development/build.md
docs/en/development/build.md
+4
-6
docs/en/development/build_cross.md
docs/en/development/build_cross.md
+53
-0
未找到文件。
docs/en/development/build.md
浏览文件 @
dac5889b
...
...
@@ -10,7 +10,7 @@ sudo apt-get install git pbuilder debhelper lsb-release fakeroot sudo debian-arc
## Checkout ClickHouse Sources
```
bash
git clone
--recursive
--branch
stable https://github.com/yandex
/ClickHouse.git
git clone
--recursive
--branch
master https://github.com/ClickHouse
/ClickHouse.git
cd
ClickHouse
```
...
...
@@ -55,7 +55,7 @@ sudo apt-get install gcc-9 g++-9
### Install from Sources
Look at
[
utils/ci/build-gcc-from-sources.sh
](
https://github.com/
yandex
/ClickHouse/blob/master/utils/ci/build-gcc-from-sources.sh
)
Look at
[
utils/ci/build-gcc-from-sources.sh
](
https://github.com/
ClickHouse
/ClickHouse/blob/master/utils/ci/build-gcc-from-sources.sh
)
## Use GCC 9 for Builds
...
...
@@ -73,14 +73,12 @@ sudo apt-get install libicu-dev libreadline-dev gperf
## Checkout ClickHouse Sources
```
bash
git clone
--recursive
git@github.com:
yandex
/ClickHouse.git
# or: git clone --recursive https://github.com/
yandex
/ClickHouse.git
git clone
--recursive
git@github.com:
ClickHouse
/ClickHouse.git
# or: git clone --recursive https://github.com/
ClickHouse
/ClickHouse.git
cd
ClickHouse
```
For the latest stable version, switch to the
`stable`
branch.
## Build ClickHouse
```
bash
...
...
docs/en/development/build_cross.md
0 → 100644
浏览文件 @
dac5889b
# How to Build ClickHouse on Linux for Mac OS X
The cross-build for Mac OS X is based on the Build instructions, follow them first.
# Install Clang-8
Follow the instructions from https://apt.llvm.org/ for your Ubuntu or Debian setup.
For example the commands for Bionic are like:
```
bash
sudo echo
"deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main"
>>
/etc/apt/sources.list
sudo
apt-get
install
clang-8
```
# Install Cross-Compilation Toolset
```
bash
mkdir
cctools
git clone https://github.com/tpoechtrager/apple-libtapi.git
cd
apple-libtapi
INSTALLPREFIX
=
../cctools ./build.sh
./install.sh
cd
..
git clone https://github.com/tpoechtrager/cctools-port.git
cd
cctools-port/cctools
./configure
--prefix
=
../cctools
--with-libtapi
=
../cctools
--target
=
x86_64-apple-darwin
make
install
cd
..
cd
cctools
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.14-beta4/MacOSX10.14.sdk.tar.xz
tar
xJf MacOSX10.14.sdk.tar.xz
```
Let's remember the path where we created
`cctools`
directory as ${CCTOOLS_PARENT}
# Build ClickHouse
```
bash
cd
ClickHouse
mkdir
build-osx
CC
=
clang-8
CXX
=
clang++-8 cmake
.
-Bbuild-osx
-DCMAKE_SYSTEM_NAME
=
Darwin
\
-DCMAKE_AR
:FILEPATH
=
${
CCTOOLS_PARENT
}
/cctools/bin/x86_64-apple-darwin-ar
\
-DCMAKE_RANLIB
:FILEPATH
=
${
CCTOOLS_PARENT
}
/cctools/bin/x86_64-apple-darwin-ranlib
\
-DLINKER_NAME
=
${
CCTOOLS_PARENT
}
/cctools/bin/x86_64-apple-darwin-ld
\
-DSDK_PATH
=
${
CCTOOLS_PARENT
}
/cctools/MacOSX10.14.sdk
\
-DUSE_SNAPPY
=
OFF
-DENABLE_SSL
=
OFF
-DENABLE_PROTOBUF
=
OFF
-DENABLE_PARQUET
=
OFF
-DENABLE_READLINE
=
OFF
-DENABLE_ICU
=
OFF
-DENABLE_FASTOPS
=
OFF
ninja
-C
build-osx
```
The resulting binary will have Mach-O executable format and can't be run on Linux.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录