-
Notifications
You must be signed in to change notification settings - Fork 902
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
Install rust failed with openssl errors #3995
Comments
What does |
installed already, when i run rustup, same error showup: |
@5101good I believe you're not using the system-provided |
I consulted chatGPT, and on macOS, curl is configured to use ressl by default under Apple's settings. But this is not the issue; I don't know why those configuration files cannot be read. |
@5101good I hear you. Indeed, How about setting Here's my wild guess: a certain Possibly related: |
To clarify, > /usr/bin/openssl version -d
OPENSSLDIR: "/private/etc/ssl" ... but > eza -lah /private/etc/ssl
Permissions Size User Date Modified Name
.rw-r--r--@ 333k root 1 Oct 12:10 cert.pem
drwxr-xr-x - root 1 Oct 12:10 certs
.rw-r--r--@ 745 root 1 Oct 12:10 openssl.cnf
.rw-r--r--@ 1.0k root 1 Oct 12:10 x509v3.cnf |
thanks for your help. My config options are same with you, but still has this issue. |
good news, when i upgrade macOS to V15, still fail. Then a popup window remind me update cmd line tools, when update complete, rustup can start normal now. I cannot make sure its apple's compatibility or some mistake i did before. Hope this information is useful to others who come across |
I am finally stepping into the world of Rust now😂 |
Nice to hear! So it sounds like the solution is to install Xcode Command Line Tools? Anyway, it looks like I can safely close this issue now, as I'm certain it has something to do with macOS' state rather than our codebase. Thanks a lot for sharing @5101good! |
I'm experiencing the same issue when installing it with Nix and there is no xcode update pending, but I will try to reinstall it then Update 1:
Update 2: still same error, just after longer, that's why I thought it was fixed. Update 3: looks like it's same as nix-community/fenix#178, which is likely same as oxalica/rust-overlay#149 but the latter should've been fixed at the start of the year Update 4: in case anyone will stumble upon it, I was unable to solve it, and worked around by disabling sandboxing Update 5: after I successfully switched generation, I tried to turn sandbox back on and it works. Maybe it is because of how sandboxing is implemented, or maybe it was because of some garbage uncollected. |
Verification
Problem
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
Auto configuration failed
8454617792:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
8454617792:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
8454617792:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:
Steps
Just use script on mac
Possible Solution(s)
No response
Notes
No response
Rustup version
*
Installed toolchains
*
OS version
The text was updated successfully, but these errors were encountered: