[Ruby] Recent problems with rbenv

1 minute read

Recent problems with rbenv

$ rbenv -v rbenv 1.1.2-34-g0843745 If there is no update from August 2nd to 10th, everything seems to be this version

Things that went through trial and error on an old Mac OSX.

  1. It is unknown whether it is a problem with openssl or curl, but the download of ruby 2.5.8 performed by rbenv fails.
  2. The error display is insufficient for download failure. Therefore, when 1, the cause is openssl, curl or cert.pem is completely unknown to the user.

It is said that anything can be downloaded. However

  1. command from iterm2, with curl -KO or -LO https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.8.tar.gz Is successfully downloaded. I don’t understand.

Here’s what happened with MacOSX El Capitan 10.11.

  1. Even if openssl 1.1.1g is already installed and the path is passed, install it separately under .rbenv.
  2. Download succeeds with rbenv install 2.5.8. This time, ruby 2.0.0 and $ ruby -ropenssl -e “p OpenSSL::X509::DEFAULT_CERT_FILE” “/System/Library/OpenSSL/cert.pem” As it is 1.1.1g in /usr/local/bin/openssl (not used) 7.71.1 in /usr/local/bin/curl What does it mean to succeed with a combination of? It seems that you are communicating with curl, but wget? Are you using old curl?

curl7.30.0


$ /usr/bin/curl --version
curl 7.30.0 (x86_64-apple-darwin13.0) libcurl/7.30.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

6, This is a problem for the user side, export PATH=”$HOME/.rbenv/bin:$PATH” Is it officially unnecessary? There are many cases where it is said that it is necessary for online commentary, and some guides are unnecessary. The latest version (rbenv 1.1.2) will not work unless you add it to bash_profine(zshenv).

Execute the following command. $ echo “$(rbenv init -)” export PATH=”/Users/xxxxxxx/.rbenv/shims:${PATH}” pbenv is also adding the path. Should this also be done on the program side of rbenv?

Reference 1. May be important (2015 article) How rbenv + ruby-build works-takatoshiono’s blog

The directory differs greatly between homebrew and rbenv. Originally, there should be no problem with multiple directories by specifying a prefix or linking after installation, but with homebrew and rbenv various crazy things?

Conclusion Unless the above problem is resolved, I think it is best to build ruby source and switch paths without using rbenv for the time being.

Reference 2 What is rbenv doing? -The crawfish were watching…

Tags: ,

Updated: