在Ubuntu 16.04中使用rbenv安装Ruby 2.4.1时遇到错误

时间:2017-08-25 13:03:14

标签: ruby-on-rails ruby rbenv

尝试使用rbenv安装Ruby时出现以下错误:

egroj97@SmallFootIV:~$ rbenv install 2.4.1
Downloading ruby-2.4.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2
error: failed to download ruby-2.4.1.tar.bz2

BUILD FAILED (Ubuntu 16.04 using ruby-build 20170726-7-g16aa672)

Inspect or clean up the working tree at /tmp/ruby-  build.20170825083100.28792
Results logged to /tmp/ruby-build.20170825083100.28792.log

Last 10 log lines:
/tmp/ruby-build.20170825083100.28792 ~
curl: (18) transfer closed with 2928469 bytes remaining to read

ruby​​-build.20170825083100.28792.log文件中唯一出现的内容是:

/tmp/ruby-build.20170825083100.28792 ~
curl: (18) transfer closed with 2928469 bytes remaining to read

我想问题是因为它没有完成源代码的下载,是不是有办法先下载源代码并用rbenv安装它们?或者用另一种方法安装Ruby并让rbenv识别它?

0 个答案:

没有答案