Updating RubyGems alongside an existing packaged installation on Joyent

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-04-18T08:45:54Z Indexed on 2010/04/18 8:53 UTC
Read the original article Hit count: 453

Filed under:
|

On a Joyent accelerator I'm working with, Ruby and Rubygems were installed when the server was initially setup using Cool Stack.

The existing version of Rubygems is version 0.9.2. When it comes to upgrading RubyGems using the 'sudo gem install rubygems-update' and 'sudo update_rubygems' commands, it results in the following error:

./lib/rubygems.rb:124: uninitialized constant Gem::RbConfig (NameError)
    from setup.rb:24:in `require'
    from setup.rb:24

Without having much success in rectifying this issue, I wanted to install a fresh version of RubyGems alongside this one. As this is a production server, I want to minimize the amount of environment changes I make on the server.

If I install a fresh version of RubyGems from source, how do I set this new installed version of RubyGems as the default version of RubyGems to use?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubygems