Published on: October 22, 2010 by George K.
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
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