Skip to content
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

Support for Apple M1 chip #51

Open
jarppe opened this issue Jan 10, 2022 · 4 comments
Open

Support for Apple M1 chip #51

jarppe opened this issue Jan 10, 2022 · 4 comments

Comments

@jarppe
Copy link

jarppe commented Jan 10, 2022

I would like to use Babashka Postgres pod with Apple M1 machines.

Currently this fails with message No executable found for pod org.babashka/postgresql (0.1.0) and OS Linux/aarch64

----- Error --------------------------------------------------------------------
Type:     java.lang.IllegalArgumentException
Message:  No executable found for pod org.babashka/postgresql (0.1.0) and OS Linux/aarch64
Location: <expr>:1:26

----- Context ------------------------------------------------------------------
1: (require 'babashka.pods) (babashka.pods/load-pod 'org.babashka/postgresql "0.1.0")
                            ^--- No executable found for pod org.babashka/postgresql (0.1.0) and OS Linux/aarch64

----- Stack trace --------------------------------------------------------------
user - <expr>:1:26
@borkdude
Copy link
Collaborator

@jarppe Why does it say linux? Are you running in Docker?

@lunik1
Copy link

lunik1 commented Aug 14, 2023

I don't know why @jarppe had "OS Linux" but here's the error I get trying to run the postgres pod on M1:

----- Error --------------------------------------------------------------------
Type:     java.io.IOException
Message:  Cannot run program "/Users/xxx/.local/share/.babashka/pods/repository/org.babashka/postgresql/0.1.0/mac_os_x/aarch64/pod-babashka-postgresql": error=86, Bad CPU type in executable
Location: xxx

@borkdude
Copy link
Collaborator

@lunik1 Can you try installing rosetta2? We should provide M1 binaries, agreed, but Rosetta is a good workaround for the meanwhile.

@lunik1
Copy link

lunik1 commented Aug 14, 2023

Strange, I thought I had it installed. Anyway works now, cheers.

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

No branches or pull requests

3 participants