mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
68ba523b23
* Try fix travis * fix * Fix clickhouse-local shared-split link * fix * fix * fix * Build fixes * Fix tinfo * fix * tinfo -> termcap * termcap fix * Better llvm version detect * fix * Debian postinst fix Tests: use /usr/local if exists * Compile and doc fixes * fix * fix * fix * macos fixes * fix * wip * Update demangle.h * Update demangle.cpp
1.3 KiB
1.3 KiB
How to build ClickHouse on Mac OS X
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, it should also work on any other Linux distribution.
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install required compilers, tools, and libraries
brew install cmake gcc icu4c mysql openssl unixodbc libtool gettext readline
Checkout ClickHouse sources
To get the latest stable version:
git clone -b stable --recursive --depth=10 git@github.com:yandex/ClickHouse.git
# or: git clone -b stable --recursive --depth=10 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.
Build ClickHouse
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=`which g++-8` -DCMAKE_C_COMPILER=`which gcc-8`
make -j `sysctl -n hw.ncpu`
cd ..
Caveats
If you intend to run clickhouse-server, make sure to increase the system's maxfiles variable. See MacOS.md for more details.