Search code examples
rubymacoshomebrewosx-mavericksrbenv

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.


Solution

  • 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.