Blog

Ruby Gems not getting updated

Tags: cPanelgiving response code 302ruby

Published on: October 22, 2010 by George K.

Ruby Gems not getting updated

Scenario:

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 http://gems.rubyforge.org/yaml

Solution was to specify another source as below, which was the 302 redirection of http://gems.rubyforge.org/yaml . May be gem now handles the 302 redirection properly.

gem install rubygems-update --source http://production.s3.rubygems.org/ 

followed by the gem update itself.

sudo gem update --system --source http://production.s3.rubygems.org/

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

gem help sources
gem sources -a http://production.s3.rubygems.org/

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:

Comments

Add new commentSIGN IN

Let's Connect

Categories

Your Cart

Cart is empty.

Subtotal
₹0.00
APPLY
0
Send this to a friend