Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rbenv install --list does not list version 2.1.2

I installed rbenv via Homebrew on an OS X 10.9.3 MacBook Pro:

brew update brew upgrade rbenv ruby-build 

According to rbenv install --list on my laptop Ruby 2.1.0-dev is the latest.

like image 561
levy Avatar asked May 16 '14 19:05

levy


People also ask

How do I install a specific version of Rbenv Ruby?

To install and use a different version of Ruby, run the rbenv commands with a different version number, such as rbenv install 2.3. 0 and rbenv global 2.3. 0 . You now have one version of Ruby installed and have set your default Ruby version.

How do I list Ruby versions in Rbenv?

Use 'rbenv install --list-all / -L' to show all local versions.


1 Answers

Both rbenv and ruby-build are generally installed from Github by cloning; That's how the authors recommend we install it.

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

If you didn't do it that way I'd recommend that method. Then, you can simply do:

cd ~/.rbenv git pull cd plugins/ruby-build git pull 

If you have several plugins use:

cd plugins for i in * do   cd $i   git pull   cd - done 

I update every couple weeks just to pull in the latest fixes/changes.

like image 162
the Tin Man Avatar answered Sep 19 '22 05:09

the Tin Man