新手问题 rvm intall ruby 2.3.1 报错

WenMellors · 2018年10月21日 · 最后由 tuliang 回复于 2018年10月21日 · 1889 次阅读
xu@xu-VirtualBox:~$ rvm install 2.3.0
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/18.04/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/xu/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
There was an error(35).
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

There has been an error fetching the ruby interpreter. Halting the installation.

即使增加了 timeout 也失败了,之前的步骤全部按照社区教程走的(https://ruby-china.org/wiki/install_ruby_guide) 看报错信息是 SSL 握手失败,但是并没能在网上找到相关的解决方法

似乎是 ruby 镜像源的问题,换了一个新的镜像源,能下载安装了,不过在安装第二个包的时候,仍然下载速度变为 0

先看下是否执行过

echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db

再检查一下 curlopenssl 是否安装正确

WenMellors 关闭了讨论。 10月22日 13:58
需要 登录 后方可回复, 如果你还没有账号请 注册新账号