mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
f6d8436f81
* Try travis * wip * Try travis * try * try * try * try * Revert "try" This reverts commit7ecd73c2eb
. * try unbundled * Try unbundled2 * Try undundled3 * Try unbundled4 * Try5 * try gcc7 * try6 * Try clang * Try min * try ccache * try ccache stats * no sudo * try clang * try ccache * reset changelog * Try fix clang * try limit time * Faster * try timeout * try faster * Try * try * try * try * try * try * ccache * Fix * try test * try test * Fix try_listen in some vm's * fix * test * fix * cache timeout * packages * fix * fix * fix * try emb compiler * Try emb compiler * Revert "try emb compiler" This reverts commit471713cabe
. * try * Revert "Try emb compiler" This reverts commit95e632abf6
. * Skip long * fix * fix * ccache * fix * debug * Fxi test * test fix * tes fix * Fix * Fix link * Fix odbc link * Fxi test * fix boost unbundled include * fix test * fix test * test fix * fix tests * tests * Test fail
26 lines
1013 B
Bash
Executable File
26 lines
1013 B
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-dev zlib1g-dev liblz4-dev libdouble-conversion-dev libzstd-dev libre2-dev libzookeeper-mt-dev libsparsehash-dev librdkafka-dev libcapnp-dev libpoco-dev libsparsehash-dev libgoogle-perftools-dev libunwind-dev
|
|
|
|
# install testing only stuff if you want:
|
|
sudo apt install -y python python-lxml python-termcolor 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 ..
|