Why can't rbenv install the latest Ruby version on Ubuntu?

tim_xyz

I want to install a recent version of Ruby on Ubuntu 20.04. But when I run rbenv install -l on my Ubuntu server, I only see old versions of Ruby listed.

Available versions:
  1.8.5-p52
  ...
  2.2.7
  2.3.0-dev
  2.3.0-preview1
  2.3.0-preview2
  2.3.0
  2.3.1
  2.3.2
  2.3.3
  2.3.4
  2.4.0-dev
  2.4.0-preview1
  2.4.0-preview2
  2.4.0-preview3
  2.4.0-rc1
  2.4.0
  2.4.1
  2.5.0-dev
  jruby-1.5.6
  jruby-1.6.3
  jruby-1.6.4
  ...
  jruby-9.1.8.0
  jruby-9.1.9.0-dev
  jruby-9.1.9.0
  jruby-9.1.10.0
  jruby-9.1.11.0
  jruby-9.1.12.0
  maglev-1.0.0
  maglev-1.1.0-dev
  maglev-2.0.0-dev
  mruby-dev
  mruby-1.0.0
  mruby-1.1.0
  mruby-1.2.0
  rbx-2.2.2
  rbx-2.2.3
  ...
  rbx-3.79
  rbx-3.80
  rbx-3.81
  rbx-3.82
  ree-1.8.7-2011.03
  ree-1.8.7-2011.12
  ree-1.8.7-2012.01
  ree-1.8.7-2012.02
  topaz-dev

Compared to when I run it locally on my mac, I see recent versions like 2.7.1.

2.5.8
2.6.6
2.7.1
...

Why don't these new version show on Ubuntu? I have rbenv 1.1.1 installed on Ubuntu.

This is probably a dumb question but I have little understanding of code below the webdev level.

tim_xyz

I ran this command and it solved my problem.

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

Now I see recent versions of Ruby.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Install Latest Stable Version of Ruby Using rbenv

rbenv can't change global ruby version

rbenv install not downloading ruby version

Can't update/install latest npm version

Can't install the latest version of python package

Can't install latest Zoom version

Can't install latest supertuxkart version on 18.04

Why can't I set the default Ruby version in Ubuntu?

rbenv Ruby version 2.7.6 got ruby-build error and won't install

Why doesn't gcc or build-essential install the latest version of GCC (9 as of today) on Ubuntu 18.04 LTS?

How to install ruby-build for rbenv on Ubuntu?

Can't install latest angular cli on ubuntu

I want to change ruby version by rbenv, but I can't reset my 'which ruby'

rbenv doesn't work on ubuntu with rbenv and ruby-build?

Wrong ruby version, can't install rvm

Why won't Yum install the latest version of Perl?

Can't install the latest version of NodeJs despite update prior to the attempt

Can't install latest nginx version when using debian:jessie

rbenv not changing ruby version

Why Ubuntu doesn't upgrade to the latest version of GnuPG?

I can't upgrade nginx PHP version to latest on ubuntu 16

Unable to install Ruby 2.4.0 using rbenv on Ubuntu 16.04 LTS

Why cant I change my ruby version with rbenv?

unable to re-install ruby to latest version

Why doesn't the latest Ubuntu edition come with the latest stable Linux kernel version?

How to install libimobiledevice latest version on Ubuntu 18.04

How to install latest version of Okular on Ubuntu 16.04?

Install latest nodejs version in ubuntu 14.04

How to install latest version of Nitroshare on Ubuntu?