LoginSignup
1
1

More than 5 years have passed since last update.

rustupのハマりところ

Last updated at Posted at 2017-07-27

結論

以下のようなエラーがあれば直接 rustup-initをダウンロードし,直接実行すればいいって話

wget https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init

rustup.rsもcURLでダウンロードした後実行するだけなので

確認方法

❯ rustc --version
rustc 1.19.0 (0ade33941 2017-07-17)

エラーの説明

Rust言語をmacにインストールする際にOfficalのrustupを使ってやってみた.

curl https://sh.rustup.rs -sSf | sh

が,次のようなエラーがあった

*   Trying {IP}...
* TCP_NODELAY set
* Connected to static.rust-lang.org ({IP}) port 443 (#0)
* WARNING: disabling hostname validation also disables SNI.
* SSL peer handshake failed, the server most likely requires a client certificate to connect
* Closing connection 0
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
rustup: command failed: curl -sSfL https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init -o /var/folders/gl/_qfnzk2n7jg0/T/tmp.dfCf1BEA/rustup-init

cURLは最新版にしたが,解決できなかった

❯ curl -V
curl 7.54.1 (x86_64-apple-darwin16.6.0) libcurl/7.54.1 SecureTransport zlib/1.2.8
Release-Date: 2017-06-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets

certificate系のIssueはgithubにあるが,SSL_CERT_FILEはこの場合関係ないように思う

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1