Build should work on Mac OS X 10.12. If you're using earlier version, you can try to build ClickHouse using Gentoo Prefix and clang sl in this instruction. With appropriate changes, build should work on any other OS X distribution.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cmake gcc
brew install boost --cc=gcc-6
brew install icu4c mysql openssl unixodbc glib libtool gettext homebrew/dupes/libiconv homebrew/dupes/zlib
brew install readline
To get the latest stable version:
git clone -b stable git@github.com:yandex/ClickHouse.git
# or: git clone -b stable https://github.com/yandex/ClickHouse.git
cd ClickHouse
For development, switch to the master
branch.
For the latest release candidate, switch to the testing
branch.
export CC=gcc-6
export CXX=g++-6
export ENABLE_MONGODB=0
export THREADS=$(sysctl -n hw.ncpu)
mkdir build
cd build
cmake ..
make -j $THREADS
cd ..
If you intend to run clickhouse-server, make sure to increase system's maxfiles variable. See MacOS.md for more details.