Install Ruby Gems

When I run Ruby commands like

gem install heroku

or

gem update --system

I get a warning

ERROR:  Could not find a valid gem 'heroku' (>= 0) in any repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: No connection could be made because the target machine
actively refused it. - connect(2) (http://rubygems.org/latest_specs.4.8.gz)

I looked at several related posts, most of which suggest network issues; I turned off all antivirus programs and firewalls, but no luck. Please note that others on the same network do not face these problems. I am puzzled by how to proceed.

 RubyGems Environment:  

- RUBYGEMS VERSION: 1.5.2
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.8.7/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-mingw32
- GEM PATHS:
   - C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
   - C:/Users/xxxxx/.gem/ruby/1.8
- GEM CONFIGURATION:
   - :update_sources => true
   - :verbose => true
   - :benchmark => false
   - :backtrace => false
   - :bulk_threshold => 1000
- REMOTE SOURCES:
   - http://rubygems.org/
+3
source share
5 answers

Old post, but it might help someone else. Specify your proxy server. This seems to work though the http_proxy environment variable is already set:

gem install heroku --http-proxy http://yourproxyserver:port
+5
source
  • Check if you have internet access
  • If you are behind an HTTP proxy, check out this question
  • 1 2 , .
+1

: http://rubygems.org/pages/download#formats

, , .

:

$ gem install slimgems
0

, , , . . , , .

. - ( python, python -m SimpleHTTPServer 8000) (http://localhost:8000) . , (). , http://rubygems.org, , , , .

-1