Rubyのバージョンを2.5.7から2.7.1にアップデートを試みています。rbenv install -v 2.7.1したところ下記のようなエラーが出ました。
原因わかる方お願いいたします。
tmp/ruby-build.20200518151907.32091.47IlKl/ruby-2.7.1/lib/rubygems/core_ext/kernel_require.rb:92:in require': cannot load such file -- openssl (LoadError) from /tmp/ruby-build.20200518151907.32091.47IlKl/ruby-2.7.1/lib/rubygems/core_ext/kernel_require.rb:92:in
require'
from /tmp/ruby-build.20200518151907.32091.47IlKl/ruby-2.7.1/lib/rubygems/specification.rb:2426:in to_ruby' from ./tool/rbinstall.rb:846:in
block (2 levels) in install_default_gem'
from ./tool/rbinstall.rb:279:in open_for_install' from ./tool/rbinstall.rb:845:in
block in install_default_gem'
from ./tool/rbinstall.rb:835:in each' from ./tool/rbinstall.rb:835:in
install_default_gem'
from ./tool/rbinstall.rb:799:in block in <main>' from ./tool/rbinstall.rb:950:in
block in <main>'
from ./tool/rbinstall.rb:947:in each' from ./tool/rbinstall.rb:947:in
<main>'
uncommon.mk:373: recipe for target 'do-install-all' failed
make: *** [do-install-all] Error 1
BUILD FAILED (Ubuntu 18.04 using ruby-build 20200401-28-g8cf308a)
Inspect or clean up the working tree at /tmp/ruby-build.20200518151907.32091.47IlKl
Results logged to /tmp/ruby-build.20200518151907.32091.log
Last 10 log lines:
from ./tool/rbinstall.rb:279:in open_for_install' from ./tool/rbinstall.rb:845:in
block in install_default_gem'
from ./tool/rbinstall.rb:835:in each' from ./tool/rbinstall.rb:835:in
install_default_gem'
from ./tool/rbinstall.rb:799:in block in <main>' from ./tool/rbinstall.rb:950:in
block in <main>'
from ./tool/rbinstall.rb:947:in each' from ./tool/rbinstall.rb:947:in
<main>'
uncommon.mk:373: recipe for target 'do-install-all' failed
make: *** [do-install-all] Error 1