How can I get past “http://gems.rubyforge.org/ does not appear to be a repository” error message

前端 未结 5 1677
忘掉有多难
忘掉有多难 2020-12-05 18:32

Question 828421 asked similar question, but received only one real answer (update rubygems) and that attempt results in the same error.

Ruby version 1.9.1.p243 on Wi

相关标签:
5条回答
  • 2020-12-05 18:57

    This can "at times" mean that for some reason rubygems.org is down currently, and so your local "invisible proxy" is returning you a 404 or what not.

    0 讨论(0)
  • 2020-12-05 19:11

    @Tomas Markauskas didn't work for me because i'm not behind a proxy. And I didn't find a solution anywhere, I tried disable my AV and firewall, didn't

    This was the solution for me:

    gem install rails -r -w -p
    

    Hope this will help people with the same problem.

    EDIT: I have Windows 7 64bit.

    0 讨论(0)
  • 2020-12-05 19:12

    Sample:

    sudo gem install nifty-generators -p http://proxy:port
    

    It works well.

    0 讨论(0)
  • 2020-12-05 19:13

    If your proxy requires authentication, then use:

    gem install --http-proxy http://USERNAME:PASS@HOST:PORT gem_name
    
    0 讨论(0)
  • 2020-12-05 19:14

    Your browser might be using system-wide proxy settings or some sort of automatic configuration. The gem command probably doesn't. I'm behind an university proxy and I can't install/update any gems normally, but can access everything with my browser. To install gems, I normally create a tunnel to my server so I can bypass the proxy server.

    This might help you to configure the proxy settings for the gem command: How do I update Ruby Gems from behind a Proxy (ISA-NTLM)

    0 讨论(0)
提交回复
热议问题