Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save QETHAN/d3282d9e8d12bd41326e to your computer and use it in GitHub Desktop.
Save QETHAN/d3282d9e8d12bd41326e to your computer and use it in GitHub Desktop.
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302
据说这是因为gem版本太低了导致无法更新。
从网上查到更新gem代码,执行后还是报错。
C:\ruby>gem update --system
Updating RubyGems...
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302
后来在 http://phpcollection.com/error-while-executing-gem-gemremotesourceexception-http-response-302-fetching/ 看到换个source就行了,果然:
C:\ruby>gem update --system --source http://production.s3.rubygems.org
Updating RubyGems...
Need to update 1 gems from http://production.s3.rubygems.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment