-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Problem with libcrypto on MacOS 11 (Big Sur) #81
Comments
I don't know much about this sort of thing, but I've had a little look and it seems that the issue is using dlopen to open an unversioned libcrypto under macOS Big Sur's new dynamic linker cache. Using Hardcoding a version into OpenSSL/NativeLib.pm6 would “solve” this in an extremely fragile way, but Apple doesn't support using the libraries provided with the system and hasn't since 2011. Symlinking versions of libssl and libcrypto installed using Homebrew into /usr/local/lib fixes the issue, but I don't know what problems that could cause and it creates additional friction for users.
Is it possible for sergot/OpenSSL to specify a dependency on OpenSSL and then build, install and link with that version somehow? Is there anything else I should try? (I found this issue via rakudo/rakudo#4112 and raku-community-modules/IO-Socket-Async-SSL#60) |
Thanks, just tried this successfully. |
I think this issue has been resolved. |
@skaji https://github.com/lizmat/App-IRC-Log/runs/3894190703?check_suite_focus=true tells me otherwise :-( |
brew's openssl is now an alias of openssl@3, So you need to
|
@skaji so how would that translate to |
|
@skaji Thank you very much, that did the trick! :-) |
I ran into this issue on Macos 12 (Monterey). There was no sudo mkdir /usr/local/lib
sudo ln -s /Users/andras/.asdf/installs/ruby/2.7.5/openssl/lib/libssl.1.1.dylib /usr/local/lib/libssl.1.1.dylib
sudo ln -s /Users/andras/.asdf/installs/ruby/2.7.5/openssl/lib/libssl.1.1.dylib /usr/local/lib/libssl.dylib Not sure what will happen if i need to install other ruby versions, but so far it works fine. |
For those who are still having this issue, on my M2 with Sonoma: brew install openssl
sudo ln -s /opt/homebrew/Cellar/openssl@3/3.4.0/lib/libssl.3.dylib /usr/local/lib/libssl.3.dylib
sudo ln -s /opt/homebrew/Cellar/openssl@3/3.4.0/lib/libssl.dylib /usr/local/lib/libssl.dylib
sudo ln -s /opt/homebrew/Cellar/openssl@3/3.4.0/lib/libcrypto.3.dylib /usr/local/lib/libcrypto.3.dylib
sudo ln -s /opt/homebrew/Cellar/openssl@3/3.4.0/lib/libcrypto.dylib /usr/local/lib/libcrypto.dylib
zef install OpenSSL |
See dynamic libraries on MacOS Also see: MacOS::NativeLib |
I assumed it was related although my initial attempt at patching in |
WARNING: /Users/zaucker/opt/rakudo-2020.10/bin/rakudo is loading libcrypto in an unsafe way
See also raku-community-modules/IO-Socket-Async-SSL#60
The text was updated successfully, but these errors were encountered: