-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Stable or Nightly doesn't work on M1 macOS - dyld issue with homebrew #1785
Comments
Try installing postgrest with homebrew as well:
|
Hey @steve-chavez
Yeah but unfortunately I think the issue is that I'm on a m1 mac. So postgres is at Also tried building via source and that also failed due to similar issue I guess.
|
I'm in the same boat. Would love to have a pre-built ARM binary for my Macbook Pro M1. |
well not how to do the pre built binary but to build it from source on macos with the m1 chip |
Just ran into the same issues, the docker image also does not work on my M1 mac. |
With the help of Steve I managed to make it work. Downloaded the nightly Linux aarch 64 build. Used this Dockerfile to build a custom image Dockerfile
postgres.conf
|
As a note. Use latest nightly aarch build. 2020 linux releases not working. |
Tested the 8.0.0_1 bottle. Works on my machine. |
Hi - closed #1979 because it is a duplicate, but not because it has been resolved - just making sure there is no misunderstanding. Would very much appreciate an arm64 M1-compatible docker image built with Nix. Also, documentation is not clear on how to proceed with the Nix build using the Nix docker image for running the nix-shell for build and dev, so perhaps a bit more there on how to actually get the Nix-built docker image of PostgREST out into DockerHub? Apologies if that part is self study / common knowledge, but having build docker images with docker build and pushed to DockerHub before, this method with Nix is quite a bit different. |
@saxomagic Have you tried doing |
@steve-chavez I think that is referring to an arm64/v8 Docker image (which is tracked on #1117). arm64/v8 images should generally work fine on M1, so "M1-compatible" isn't really a thing. |
Thanks @steve-chavez and @soedirgo - yeah, I was over explicit there to avoid any confusion - arm64 would work fine on M1. @steve-chavez thanks for the reference to the arm64 PostgREST build via brew, but the equivalent of a Nix-built docker image for arm64 is what I'm really after, not simply an arm64 executable for postgREST. This would be to bring parity between amd64 and arm64 development using the docker image. As you know, the current situation is that the amd64 postgREST docker image consumes so much RAM when run on M1 arm64 (probably because of whatever amd64 -> arm64 translation is taking place) that it is only possible to run one posgREST image at a time, and nearly nothing else. |
Environment
Description of issue
Postgres is installed via homebrw
Error I get is following
The text was updated successfully, but these errors were encountered: