-
Notifications
You must be signed in to change notification settings - Fork 94
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
yarn run rover fails missing libssl.1.1.dylib, m1 mac #554
Comments
Hi @danilobuerger - thanks so much for the report. Openssl issues are super common and we'd love to address this as you won't be the only person to run into this problem! I've pushed up a branch that I think might help you, but since I don't have an M1 Macbook I can't confirm that it will. If you would be so kind, could you run the following commands? If you don't have rust installed, you can get it with: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Then, run
This second command may take a while as it will build Rover from source. After that, you can try running Then run |
Hi @EverlastingBugstopper thanks for the quick reply! The suggested steps work. I am able to use rover with it:
|
@EverlastingBugstopper I just tried with 0.1.3. Sadly, the error persists as before. |
Ugh! That's frustrating @danilobuerger - I'm sorry you're still running into this issue. That line you linked was actually supposed to be the solution - the idea being that we would "vendor" or embed the necessary OpenSSL code right into the binary itself, removing the runtime dependency. Unfortunately, it does not look like that actually fixed the problem! I don't actually have an M1 machine that I can test things on at the moment, this is something I'll tackle as soon as I can actually reproduce and reliably test on a machine. In the meantime, I am super interested if you're able to build from source, nothing should have changed between the Can you run Clearly this is not ideal and we'll work on a longer term fix but it might be a workaround you can use for now. |
@EverlastingBugstopper I might have figured it out, maybe we can still get it fix easily:
It seems like openssl is not vendored and instead uses the automatic finding mechanism with homebrew as described in https://docs.rs/openssl/0.10.34/openssl/#automatic . When using the binary created with
This will look for openssl in the correct spot. I verified it by removing openssl, and then this arm64 binary fails with:
So when installing via yarn, I don't get a arm64 binary, instead I get x86:
And for that reason, the automatic finding mechanism looks in the x86 homebrew location, not the arm64 location. So my proposed fix would be to also provide a arm64 binary and then everything should work. |
Ok @danilobuerger - I've got an explanation written up in #579, and a fix in #580 that I've tested on a real M1 machine myself. New release incoming! Thanks a bunch for your patience here. |
@EverlastingBugstopper thanks a lot! I can confirm that its working now. The binary is still x86 (as you explained) but now has a vendored openssl on board. |
Thanks for confirming and please let us know if you run into any other issues. We'll aim to get native ARM builds in place after we can run MacOS 11 on GitHub Actions 😊 |
Description
When trying to use rover, it fails with
Steps to reproduce
Expected result
Rover should work
Actual result
Rover crashes
Environment
The text was updated successfully, but these errors were encountered: