rbenv install --list does not list version 2.1.2

levy picture levy · May 16, 2014 · Viewed 26.9k times · Source

I installed rbenv via Homebrew on a OS X 10.9.3 MacBook Pro.

I did:

brew update
brew upgrade rbenv ruby-build 

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

Does anyone know what this is about? I'm going to guess it's a 10.9.3 problem.

Answer

the Tin Man picture the Tin Man · May 17, 2014

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.