ruby gem update system is disabled on Debian
Problem:
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
Unfortunately the apt-get update does not help at all.
Solution:
gem install update_rubygems cd /var/lib/gems/1.8/bin ./update_rubygems
or
gem install rubygems-update cd /var/lib/gems/1.8/bin ./update_rubygems
Thank you man
Thanks! this post save me a lot of time!
Thank you! I have spent the last 2 hours trying to fix this, I have about 4 versiong of “gem” on the system it seems and all but one were upgraded… Gah!
Thank you!
Thanks man. Saved me here.
If you’re following this guide, and you get a message like “Could not find RubyGem builder”, try installing an older version of update_rubygems. I could not get 1.3.5 to work, but 1.3.4 worked fine on a Debian Lenny machine.
gem install update_rubygems –version=1.3.4
cd /var/lib/gems/1.8/bin
./update_rubygems
awesome! thank’s you!
Thanks - saved me a lot of grief :-)