When I type
gem install sass
I get the following error message
C:>gem install compass ERROR: Could not
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.
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
TL;DR Apply the official fix:
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.
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.
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
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