mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Update build.md
This commit is contained in:
parent
c7d9094a7a
commit
9ed8792ce1
@ -5,9 +5,13 @@ toc_title: How to Build ClickHouse on Linux
|
|||||||
|
|
||||||
# How to Build ClickHouse for Development {#how-to-build-clickhouse-for-development}
|
# How to Build ClickHouse for Development {#how-to-build-clickhouse-for-development}
|
||||||
|
|
||||||
The following tutorial is based on the Ubuntu Linux system.
|
The following tutorial is based on the Ubuntu Linux system. With appropriate changes, it should also work on any other Linux distribution.
|
||||||
With appropriate changes, it should also work on any other Linux distribution.
|
|
||||||
Supported platforms: x86\_64 and AArch64. Support for Power9 is experimental.
|
Supported platforms:
|
||||||
|
|
||||||
|
- x86\_64
|
||||||
|
- AArch64
|
||||||
|
- Power9 (experimental)
|
||||||
|
|
||||||
## Install Git, CMake, Python and Ninja {#install-git-cmake-python-and-ninja}
|
## Install Git, CMake, Python and Ninja {#install-git-cmake-python-and-ninja}
|
||||||
|
|
||||||
@ -21,8 +25,18 @@ Or cmake3 instead of cmake on older systems.
|
|||||||
|
|
||||||
There are several ways to do this.
|
There are several ways to do this.
|
||||||
|
|
||||||
|
### Install from Repository {#install-from-repository}
|
||||||
|
|
||||||
|
On Ubuntu 19.10 or newer:
|
||||||
|
```
|
||||||
|
$ sudo apt-get update
|
||||||
|
$ sudo apt-get install gcc-9 g++-9
|
||||||
|
```
|
||||||
|
|
||||||
### Install from a PPA Package {#install-from-a-ppa-package}
|
### Install from a PPA Package {#install-from-a-ppa-package}
|
||||||
|
|
||||||
|
On older Ubuntu:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ sudo apt-get install software-properties-common
|
$ sudo apt-get install software-properties-common
|
||||||
$ sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
$ sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
||||||
@ -32,7 +46,7 @@ $ sudo apt-get install gcc-9 g++-9
|
|||||||
|
|
||||||
### Install from Sources {#install-from-sources}
|
### Install from Sources {#install-from-sources}
|
||||||
|
|
||||||
Look at [utils/ci/build-gcc-from-sources.sh](https://github.com/ClickHouse/ClickHouse/blob/master/utils/ci/build-gcc-from-sources.sh)
|
See [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 {#use-gcc-9-for-builds}
|
## Use GCC 9 for Builds {#use-gcc-9-for-builds}
|
||||||
|
|
||||||
@ -61,7 +75,6 @@ $ mkdir build
|
|||||||
$ cd build
|
$ cd build
|
||||||
$ cmake ..
|
$ cmake ..
|
||||||
$ ninja
|
$ ninja
|
||||||
$ cd ..
|
|
||||||
```
|
```
|
||||||
|
|
||||||
To create an executable, run `ninja clickhouse`.
|
To create an executable, run `ninja clickhouse`.
|
||||||
|
Loading…
Reference in New Issue
Block a user