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

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

我正在尝试在 windows 10 中安装 ruby。对于安装指南针和 SASS 但我无法安装它 我尝试了所有我知道的东西 &根据来自各种网站的各种问题答案,包括堆栈溢出。

set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem

set SSL_CERT_FILE= curl.haxx.se/ca/cacert.pem

gem install compass

收到以下错误消息:

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

将此文件 cacert.pem 放在您的 Ruby 文件夹中的某处

然后创建环境变量并给出这个文件的路径如

然后就可以了