rust-lang / rustup

The Rust toolchain installer
https://rust-lang.github.io/rustup/
Apache License 2.0
6.1k stars 877 forks source link

Install rust failed with openssl errors #3995

Open hoverwinter opened 3 weeks ago

hoverwinter commented 3 weeks ago

Verification

Problem

image

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

Apple M3 Pro
macOS 14.4.1 23E224
djc commented 3 weeks ago

What does which curl say, and curl -V? It looks like your curl is using libressl, which definitely seems non-standard? My curl (on macOS 14.5) is /usr/bin/curl which seems to use SecureTransport.