Rbenv install does not download ruby ​​version

Installing the ruby ​​version with rbenv rbenv install -lreturns the correct list. However

$ rbenv install 2.3.4 -v

cannot load, even if it can be downloaded through a browser. My hunch about the incorrect version of openssl (due to some remote memory about the presence of such problems - tls version? - in the past) is supported in verbose mode:

ruby-build: use openssl from homebrew 
/var/folders/kV/kVDOSPkcEuqSVnTjenAVRE+++TI/-Tmp-/ruby-build.20170601122915.1010 ~ Downloading ruby-2.3.4.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.4.tar.bz2 
curl: (35)    error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 
error: failed to download ruby-2.3.4.tar.bz2

how to win can i tell rbenv to use the loaded tarball?

+4
source share
1 answer

, rbenv curl openssl , TLS v 1.1-1.3. curl openssl brew :

brew install openssl@1.1
brew install curl

PATH ( , /usr/bin ), , openssl brew ( . /bash _profile ./zshrc .. ):

export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export PATH="/usr/local/opt/curl/bin:$PATH"

, ,

which -a openssl
which -a curl
openssl version -a
curl -V

, brew. (1.1.0f 7.55 ).

rbenv install [version]

MacOS Sierra SIP.

+6

Source: https://habr.com/ru/post/1678327/


All Articles