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
An official OS X Homebrew formula/tap or Docker image #235
Comments
Recently tried building the latest on Mac (10.13.6) but got the following error
|
@pramitchoudhary Were you able to get rid of this issue |
Now we have pre-built ClickHouse binary for OS X. It does not solve the issue completely, but now we build it for every commit and every pull request in our CI with cross-compilation. This helps to ensure that native OS X build does not break after some commit. You can download the binary and use it directly as a client or server. How to download:
There are still many things to do:
|
Pre-built binaries are published in docs: https://clickhouse.tech/docs/en/getting-started/install/#from-binaries-non-linux |
No |
Is it possible to build macOS for release branches? https://github.com/ClickHouse/ClickHouse/tree/21.2
Build from master is not good to use clickhouse to test/develop app on macOS since better to use the same version as in production. And Docker is not a solution because in this case a lot of RAM and CPU is needed to be allocated to VM. Each update and build on macOS it is a lottery and in most cases will be some compilation error :) |
If someone cannot build stable 21.2 clickhouse on macOS — see #21128 (comment) |
I would like to amplify the need for Homebrew-based installation support on macOS. On Debian systems, I can install a 4-day-old build of ClickHouse with a single command. On any Apple hardware, I have the choice of spending hours compiling ClickHouse, even on recent hardware, or using a 3rd-party and often out-of-date build. Allowing developers to run MySQL and PostgreSQL can be installed via Brew without issue. OmniSci has a single installer for macOS as well. It would be great to see ClickHouse provide official, recent and stable builds for Intel and M1-based macOS devices. |
@traceon is working on that |
Mac x86:
Mac M1:
|
That works. Cheers @alexey-milovidov |
@marklit Totally agree with you! |
|
@qoega are you going to retry your this Homebrew/homebrew-core#79378 attempt, or should I go ahead and make |
FYI: you can do |
@qoega Do I understand correctly that:
Then why do we need Homebrew at all? Maybe close this issue? |
Oh, maybe because this issue is just slightly less popular that the entire Roadmap 2021? |
Is |
I think you should make an official docker build for M1 and encourage developers to use docker not Homebrew. |
It's kinda stupid to use Homebrew, because CH won't be a service under MacOs anyway. |
Ok. |
Package management is about bringing in new users. There really is no other competitive and free columnar store on macOS. Being able to simply tell people in blog posts to run I run Clickhouse on my MBP daily. It works fine for what I need and if I had to replace it I'd struggle. I've done benchmarks against PostgreSQL for needle-in-haystack searches and it ran circles around PG. If there are features missing I personally haven't missed them and I don't think that's justification for dismissing making ClickHouse install like all other CLI-centric software. Also, on macOS, if you launch the server and close the Terminal it'll remain running in the background, even after reboots so it effectively is a service. For reasons I won't get into here, I never recommend people wrap their databases in Docker containers if there is any viable alternative. I promise I'll never publish anything instructing people to do so with ClickHouse. |
@den-crane it is not a problem to setup it as a service. It is missing some third-party stuff only because devs who integrated each of them didn't care to spend some more time in adapting the build scripts to it, that's the only reason I know of. |
I don't need it as a service. I need a prebuilt binary for macOS that matches my production version to test the app locally. Currently, prebuilt binary is provided only for master and so, it is not useful for my use case. Building from sources it is always a lottery due to numerous pitfalls and new compilation errors. Wasting time. |
Regular docker setup is not suitable for Clickhouse. For toy apps maybe, but for any production-like usage, you often have to allocate more memory, CPU and so on. Changing Docker settings is possible, but it is annoying and time-wasting. Of course, you can have a separate minikube for Clickhouse, but it is complicated (e.g. volumes are not supported correctly and so on). |
Altinity started maintaining a Homebrew Tap with ClickHouse (build by the formula using vanilla Clang 13).
brew tap altinity/clickhouse
brew install clickhouse
brew services start clickhouse
brew services stop clickhouse Note 1: All ClickHouse tools are available, including the client: Note 2: the installation doesn't require Note 3: Homebrew is available for Linux too! For Intel-based macOS Bug Sur and above a precompiled binary will be downloaded. For other platforms (x86_64 Linux, or Apple silicon-based macOS) the install will start a lengthy build process, you may want to append In order to install the latest version from the tip of the By default, the Please, report any problems during usage, compilation, or installation in the Issues section of the Tap. |
Awesome! I can test app locally using the same version as in production. Works great for me. |
…oringssl 22.8.13 BoringSSL FIPS mode
Update (not about Homebrew) from @alexey-milovidov:
How to run ClickHouse on Mac (x86):
How to run ClickHouse on Mac (M1):
A while ago I tried to create a formula for clickhouse.
It worked for me on 10.11.5 and 1.1.54074, but it wasn't accepted by the maintainers.
Their notes were:
See Homebrew/homebrew-core#7222 for more details.
If it's not possible/takes a lot of work to make it compatible with the current state of the project, I guess, there are two things that could be optimal, either:
or:
yandex/homebrew-clickhouse
github repository) so it won't depend on homebrew's requirements/guidelines.The text was updated successfully, but these errors were encountered: