mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
ba6fc5651b
* Fix user name on distributed queries * wip * fix * Docker update and improve * Fix
26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# How to build ClickHouse under debian-based systems (ubuntu)
|
|
|
|
# apt install -y curl sudo
|
|
# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/utils/build/build_debian.sh | sh
|
|
|
|
# install compiler and libs
|
|
sudo apt install -y git bash cmake gcc-7 g++-7 libicu-dev libreadline-dev libmysqlclient-dev unixodbc-dev libltdl-dev libssl-dev
|
|
# for -DUNBUNDLED=1 mode:
|
|
#sudo apt install -y libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev zlib1g-dev liblz4-dev libdouble-conversion-dev libzstd-dev libre2-dev libsparsehash-dev librdkafka-dev libcapnp-dev libpoco-dev libsparsehash-dev libgoogle-perftools-dev libunwind-dev googletest libcctz-dev
|
|
|
|
# install testing only stuff if you want:
|
|
sudo apt install -y python python-lxml python-termcolor python-requests curl perl
|
|
|
|
# Checkout ClickHouse sources
|
|
git clone --recursive https://github.com/yandex/ClickHouse.git
|
|
|
|
# Build!
|
|
mkdir -p ClickHouse/build
|
|
cd ClickHouse/build
|
|
cmake .. -DCMAKE_CXX_COMPILER=`which g++-7` -DCMAKE_C_COMPILER=`which gcc-7`
|
|
|
|
make -j $(nproc || sysctl -n hw.ncpu || echo 2)
|
|
cd ..
|