Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you update rubygems using rvm and ree?

Tags:

ruby

rubygems

rvm

How do you update rubygems under rvm when ree is your default vm (on Snow Leopard)? I am doing:

$ rvm ree gem update --system

This results in things looking like everything went fine:

Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed

[...]

RubyGems installed the following executables:
        /Users/douglassellers/.rvm/rubies/ree-1.8.7-2010.02/bin/gem

but when I run gem --version it still says 1.3.5. Doing a which gem points at ree version of gem.

Anyone know how to get rubygems to update with RVM?

like image 628
Douglas Sellers Avatar asked Aug 20 '10 23:08

Douglas Sellers


People also ask

What is the command to update RVM in rails?

First of all, update your RVM installation by running rvm get stable . To make sure you're running the new RVM version, you'll then need to run rvm reload (or just open a new terminal). Once that's done, you can ask RVM to list the ruby versions available to install by running rvm list known .

How to upgrade Ruby on RVM?

RVM supports few ways of upgrading itself. Every month or two a stable release of RVM is created, it includes minor version increase. Between releases only bugfixes and ruby version updates are added to it with teeny version update. Normal development and major changes continue on the master branch to install it use head version.

What is the use of RVM gems in Ruby?

RVM creates a new completely separate gem directory for each version of ruby. In addition you can separate this further and have a set of gems per project/application/gerbil color... see the gemsets for more details on using sets of gems. DO NOT use sudo... to work with RVM gems.

What version of RubyGems should I install?

If a newer version of rubygems has been released than the one that RVM knows about then you should get the latest version of RVM, the latest git head would be best, in order to be able to install the newer version since their download url's change for each release / are not consistent (rubyforge scheme).

How often does RVM version change?

Every month or two a stable release of RVM is created, it includes minor version increase. Between releases only bugfixes and ruby version updates are added to it with teeny version update. Normal development and major changes continue on the master branch to install it use head version.


1 Answers

Now you can just do :

rvm rubygems latest

Or you can define which rubygems you really want. https://rvm.io/rubies/rubygems/

like image 160
shingara Avatar answered Oct 01 '22 22:10

shingara