gem install cannot download from rubygems.org

后端 未结 7 2120
清酒与你
清酒与你 2021-01-05 03:12

When I type

gem install sass

I get the following error message

C:>gem install compass ERROR: Could not

相关标签:
7条回答
  • 2021-01-05 03:30

    what rails do you use??

    I think your problem is the version of rails.

    I use:

    gem 'rails', '4.1.4'
    gem 'sass-rails', '~> 4.0.3'
    

    Some times https://rubygems.org is the problem I need to change for http://rubygems.org, I think the problems is for proxy.

    0 讨论(0)
  • 2021-01-05 03:33

    Try disabling Ipv6 on your system. If on Linux you can use these commands.

     sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
    sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 
    
    0 讨论(0)
  • 2021-01-05 03:41

    TL;DR Apply the official fix:

    1. Download https://rubygems.org/downloads/rubygems-update-2.6.7.gem
    2. Run:

      gem install --local rubygems-update-2.6.7.gem
      update_rubygems --no-ri --no-rdoc
      gem uninstall rubygems-update -x
      

    Long version

    See http://guides.rubygems.org/ssl-certificate-update/ .

    Basically it adds GlobalSignRootCA. Very easy to apply, unfortunately hard to google though.

    0 讨论(0)
  • 2021-01-05 03:43

    I also noticed issues with rubygems.org yesterday (in one environment), but your error almost sounds like an issue with a newly-installed Ruby and its SSL integration/configuration (having it locate SSL during installation, as well as the necessary certificates).

    You might check out:

    SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/

    But if that doesn't help I recommend continued searching, as this seems to be a common problem area.

    0 讨论(0)
  • 2021-01-05 03:44

    According to this post : SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/

    Goto link http://rubygems.org/pages/download

    Download the latest zip file
    Unzip it
    run "ruby setup.rb" in unzipped folder
    now run gem install command

    0 讨论(0)
  • 2021-01-05 03:44

    I fix the problem using this method:

    • Go to rubygems.org and install a fresh rubygems gem

    • Use the following approach: http://puu.sh/dKilg/78ccee17b6.png

    http://help.rubygems.org/discussions/problems/19761-could-not-find-a-valid-gem

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