Windows 10 64-bit: ERROR: Could not find a valid gem 'compass' (>= 0), here is why:

隐身守侯 提交于 2019-12-08 03:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!