Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hipster style debian build script #343

Merged
merged 1 commit into from
Jan 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions doc/build_debian.sh
Original file line number Diff line number Diff line change
@@ -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 ..
7 changes: 5 additions & 2 deletions doc/build_freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down