Ruby Gems not getting updated

Tags: cPanelgiving response code 302ruby

Published on: October 22, 2010 by George K.

Ruby Gems not getting updated


On a cPanel server, I ran the script /scripts/installruby for rubygems update which updated the ruby version from 1.8.6 to 1.8.7

ruby -v
ruby 1.8.7 (2009-06-08 patchlevel 173) [i686-linux]

But when updating the gems and the gem itself, we were getting error as below,

gem update --system
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching

Solution was to specify another source as below, which was the 302 redirection of . May be gem now handles the 302 redirection properly.

gem install rubygems-update --source 

followed by the gem update itself.

sudo gem update --system --source

To add the source permanently, use the command below and for more help

gem help sources
gem sources -a

Category : cPanel, General, Snippets, Troubleshooting

George K.

George K.

George started his career in web hosting and Linux technical support in the year 2004 and is with SupportSages since 2009. He has keen interest in server optimizations, custom security solutions, hacked server recovery, cyber forensic and high availability fail over system design and implementation. George loves long drives and is passionate about art and literature.

You may also read:


Add new commentSIGN IN

Let's Connect


Your Cart

Cart is empty.

Send this to a friend