Skip to content

run and compile postgres natively on Apple Silicon M1(arm64) #86

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

Closed
pskrbasu opened this issue Mar 24, 2022 · 2 comments
Closed

run and compile postgres natively on Apple Silicon M1(arm64) #86

pskrbasu opened this issue Mar 24, 2022 · 2 comments

Comments

@pskrbasu
Copy link

Hello,

I have downloaded the Embedded Postgres Binary Darwin Arm64v8(12.10.0) from https://mvnrepository.com/artifact/io.zonky.test.postgres/embedded-postgres-binaries-darwin-arm64v8/12.10.0 and I'm using it on my M1 SoC which has arm64 architecture.

I see that the binary does not run natively on M1:

file postgres-darwin-arm_64/bin/postgres 
postgres-darwin-arm_64/bin/postgres: Mach-O 64-bit executable x86_64

I want it to run and compile natively on arm64.
Is there something I'm missing or is it designed this way?

@tomix26
Copy link
Collaborator

tomix26 commented May 8, 2022

Hi @pskrbasu, thank you for letting me know. Yes, you are right. I thought that all new versions of EnterpriseDB binaries already include support for M1 architecture. But I just realized that only the latest major version supports this new instruction set. So to run it natively on M1 processors you need to upgrade to PostgreSQL 14. It's my fault and I'm really sorry, but it's already published and can't be changed.

@tomix26
Copy link
Collaborator

tomix26 commented May 22, 2022

It has been fixed for next versions in zonkyio/embedded-postgres-binaries@e1dd5c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants