问题
I'm trying to install ruby in windows 10. For install compass & SASS but I'm unable to install this I tried all the things I know it & as per various question answer from various website including stack overflow.
set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem
or
set SSL_CERT_FILE= curl.haxx.se/ca/cacert.pem
gem install compass
Received Following Error Message:
ERROR: Could not find a valid gem 'compass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed
Image with error message
回答1:
Place this file cacert.pem
somewhere in your Ruby folder
and then create environmental variable and give the path of this file such as
Then it will work.
来源:https://stackoverflow.com/questions/40285447/windows-10-64-bit-error-could-not-find-a-valid-gem-compass-0-here-is-w