我正在尝试使用rbenv安装Ruby 2.4.0,我收到错误,如下所示
`a@a:~$ rbenv install 2.4.0
Downloading ruby-2.4.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
error: failed to download ruby-2.4.0.tar.bz2
BUILD FAILED (Ubuntu 16.04 using ruby-build 20170726)
Inspect or clean up the working tree at /tmp/ruby-build.20170806000333.10203
Results logged to /tmp/ruby-build.20170806000333.10203.log
Last 10 log lines:
/tmp/ruby-build.20170806000333.10203 ~
Unable to establish SSL connection.
`
我完全不知道如何解决这个问题。如果有人能帮助我,我会很高兴。
提前致谢。
答案 0 :(得分:3)
可能这些步骤可以帮助您解决问题
mkdir ~/.rbenv/cache
rbenv install 2.4.0
或
mkdir ~/.rbenv/cache
# download manually ruby file
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
# move file
mv ruby-2.4.0.tar.bz2 ~/.rbenv/cache
# do the install
rbenv install 2.4.0
答案 1 :(得分:0)
您是否有可能阻止它的防火墙?