Altinity Stable Build Guide for ClickHouse
Organizations that prefer to build ClickHouse manually can use the Altinity Stable versions of ClickHouse directly from the source code.
Clone the Repo
Before using either the Docker or Direct build process, the Altinity Stable for ClickHouse must be downloaded from the Altinity Stable of ClickHouse repository, located at https://github.com/Altinity/clickhouse. The following procedure is used to update the source code to the most current version. For more information on downloading a specific version of the source code, see the GitHub documentation.
ClickHouse can run on the most minimum hardware to full clusters. The following hardware requirements are recommended for building and running ClickHouse:
- 16GB of RAM (32 GB recommende)
- Multiple cores (4+)
- 20-50 GB disk storage
Downloading Altinity Stable for ClickHouse
Before building ClickHouse, specify the verified version to download and build by specifying the Altinity Stable for ClickHouse tags. The `–recursive`` command will download all submodules part of the Altinity Stable project.
As of this writing, the most recent verified version is
v18.104.22.168-altinitystable, so the download command to download that version of Altinity Stable into the folder
git clone --recursive -b v22.214.171.124-altinitystable --single-branch https://github.com/Altinity/clickhouse.git AltinityStableClickHouse.
Direct Build Instructions for Deb Based Linux
To build Altinity Stable for ClickHouse from the source code for Deb based Linux platforms:
Install the prerequisites:
sudo apt-get install git cmake python ninja-build
sudo apt install clang-12
Create and enter the
builddirectory within your AltinityStable directory.
mkdir build && cd build
Set the compile variables to
clang-12and initiate the
CC=clang-12 CXX=clang++-12 cmake .. -GNinja
ninjacommand to build your own Altinity Stable for ClickHouse:
Once complete, Altinity Stable for ClickHouse will be in the project’s
programsfolder, and can be run with the following commands:
- ClickHouse Server:
- ClickHouse Client:
- ClickHouse Server:
Was this page helpful?
Glad to hear it!
Sorry to hear that. We'll track this issue and see how we can improve.