Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How to Build ClickHouse on macOS for macOS
This build guide is for contributors modifying ClickHouse itself.If you are not changing ClickHouse source code, you can install pre-built ClickHouse as described in Quick Start.
Install prerequisites
First, see the generic prerequisites documentation. Next, install Homebrew and run Then run:Apple uses a case-insensitive file system by default. While this usually does not affect compilation (especially scratch makes will work), it can confuse file operations like
git mv.
For serious development on macOS, make sure that the source code is stored on a case-sensitive disk volume, e.g. see these instructions.Build ClickHouse
To build you must use Homebrew’s Clang compiler:If you are running into
ld: archive member '/' not a mach-o file in ... errors during linking, you may need
to use llvm-ar by setting flag -DCMAKE_AR=/opt/homebrew/opt/llvm/bin/llvm-ar.Caveats
If you intend to runclickhouse-server, make sure to increase the system’s maxfiles variable.
You’ll need to use sudo.
/Library/LaunchDaemons/limit.maxfiles.plist file with the following content:
ulimit -n or launchctl limit maxfiles commands.