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.
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.
Use 'rbenv install --list-all / -L' to show all local versions.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With