-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Presto is not supported in Mac OS (PrestoSystemRequirements requires x86_64 on Mac OS X (found aarch64)) #17146
Comments
I am having similar issues, and would love to see prestodb supported on M1 based macs! I'm using the
|
I encountered similar issue, but I installed a jdk version with x86 supported to bypass this issue. I used sdkman to install jdk. After setting rosetta compatible as true/false, |
Thanks for the advise. But how to |
Any permanent fixes for this? |
Hi, Sorry for replying late. I think this link can provide most of the information you need. The gist is:
Experiments
|
So, this solution is to switch over to use x86_64 jdk to 'run' presto built with x86 jdk? Would it be possible to run the presto that has been built with x86 jdk with an aarch64 jdk? |
After my attempts, I am the latest macos sonnoma 14.2 found that sdkman is no longer able to download the x86 sdk
After my attempts, I am the latest macos sonnoma 14.2 found that sdkman is no longer able to download the x86 sdk |
Hi,
I was trying to install Presto under my M1 Macbook Pro, and got error message "Presto requires x86_64 on Mac OS X (found aarch64)" when service was launched.
I found the issue was from the method 'verifyOsArchitecture' under class PrestoSystemRequirements.java of package com.facebook.presto.server.
I currently fork the repo and build my version to avoid the issue by changing the method as below:
else if ("Mac OS X".equals(osName)) { if (!"x86_64".equals(osArch) && !"aarch64".equals(osArch)) { failRequirement("Presto requires x86_64 or aarch64 on Mac OS X (found %s)", osArch); } }
Also, presto-cli is not compatible with arm yet. I got error like this.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-0.269-SNAPSHOT-ce338f0 in java.library.path, no jansi-0.269-SNAPSHOT-ce338f0 in java.library.path, no jansi in java.library.path, /private/var/folders/n2/gmyyclln46b7zb4q0t885wyr0000gn/T/libjansi-64-0-4225468188239448006.269-SNAPSHOT-ce338f0: dlopen(/private/var/folders/n2/gmyyclln46b7zb4q0t885wyr0000gn/T/libjansi-64-0-4225468188239448006.269-SNAPSHOT-ce338f0, 0x0001): tried: '/private/var/folders/n2/gmyyclln46b7zb4q0t885wyr0000gn/T/libjansi-64-0-4225468188239448006.269-SNAPSHOT-ce338f0' (fat file, but missing compatible architecture (have 'x86_64,i386', need 'arm64e')), '/usr/lib/libjansi-64-0-4225468188239448006.269-SNAPSHOT-ce338f0' (no such file)]
It would be great if it can be fixed and released in next version.
The text was updated successfully, but these errors were encountered: