Skip to content

Instantly share code, notes, and snippets.

@walterheck
Created February 17, 2013 13:24
Show Gist options
  • Save walterheck/4971480 to your computer and use it in GitHub Desktop.
Save walterheck/4971480 to your computer and use it in GitHub Desktop.
root@megatron-dev:/var/www/megatron# gem update --system
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.
root@megatron-dev:/var/www/megatron# REALLY_GEM_UPDATE_SYSTEM=true gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.8.25
Updating RubyGems to 1.8.25
Installing RubyGems 1.8.25
RubyGems 1.8.25 installed
== 1.8.25/ 2013-01-24
* 6 bug fixes:
* Added 11627 to setup bin_file location to protect against errors. Fixes #328 by ConradIrwin
* Specification#ruby_code didn't handle Requirement with multiple
* Fix error on creating a Version object with a frozen string.
* Fix incremental index updates
* Fix missing load_yaml in YAML-related requirement.rb code.
* Manually backport encoding-aware YAML gemspec
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem1.9.1
root@megatron-dev:/var/www/megatron# rails generate rspec:install
/usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /var/lib/gems/1.9.1/bin/rails:18:in `<main>'
root@megatron-dev:/var/www/megatron# rails -v
/usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /var/lib/gems/1.9.1/bin/rails:18:in `<main>'
root@megatron-dev:/var/www/megatron# gem list
*** LOCAL GEMS ***
root@megatron-dev:/var/www/megatron# bundle update
/usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [] (Gem::LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/lib/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /var/lib/gems/1.9.1/bin/bundle:18:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment