From 9249c829b49707101986d7f96c1d57f8f292e7f1 Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 16 Jan 2017 23:00:17 +0300 Subject: [PATCH] Hipster style debian build script --- doc/build_debian.sh | 23 +++++++++++++++++++++++ doc/build_freebsd.sh | 7 +++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100755 doc/build_debian.sh diff --git a/doc/build_debian.sh b/doc/build_debian.sh new file mode 100755 index 00000000000..af48f547915 --- /dev/null +++ b/doc/build_debian.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# How to build ClickHouse under debian-based systems (ubuntu) + +# apt install -y curl sudo +# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/doc/build_debian.sh | sh + +# install compiler and libs +sudo apt install -y git bash cmake gcc-6 g++-6 libicu-dev libreadline-dev libmysqlclient-dev unixodbc-dev libglib2.0-dev libltdl-dev libssl-dev + +# install testing only stuff if you want: +sudo apt install -y python python-lxml python-termcolor curl perl + +# Checkout ClickHouse sources +git clone https://github.com/yandex/ClickHouse.git + +# Build! +mkdir -p ClickHouse/build +cd ClickHouse/build +cmake .. -DCMAKE_CXX_COMPILER=`which g++-6` -DCMAKE_C_COMPILER=`which gcc-6` + +make -j $(nproc || sysctl -n hw.ncpu || echo 2) +cd .. diff --git a/doc/build_freebsd.sh b/doc/build_freebsd.sh index 0f0ac3f757c..272a4899c44 100755 --- a/doc/build_freebsd.sh +++ b/doc/build_freebsd.sh @@ -3,11 +3,14 @@ # How to build ClickHouse under freebsd 11+ # [temporary solution before port created] +# pkg install -y curl sudo +# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/doc/build_freebsd.sh | sh + # install compiler and libs -pkg install -y git cmake gcc6 bash glib mysql57-client icu libltdl unixODBC +sudo pkg install -y git cmake gcc6 bash glib mysql57-client icu libltdl unixODBC # install testing only stuff if you want: -pkg install -y python py27-lxml py27-termcolor +sudo pkg install -y python py27-lxml py27-termcolor curl perl5 # Checkout ClickHouse sources git clone https://github.com/yandex/ClickHouse.git