Windows 10 64位:错误:无法找到有效的gem'compass'(> = 0),这是为什么: [英] Windows 10 64-bit: ERROR: Could not find a valid gem 'compass' (>= 0), here is why:

查看:309
本文介绍了Windows 10 64位:错误:无法找到有效的gem'compass'(> = 0),这是为什么:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在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

收到以下错误消息:


 错误:找不到有效gem'compass'(> = 0),原因如下:
无法从https://rubygems.org/下载数据 - SSL_connect返回= 1 errno = 0 state = SSLv3读取服务器证书B:

证书验证失败



然后它会工作。


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

解决方案

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.

这篇关于Windows 10 64位:错误:无法找到有效的gem'compass'(> = 0),这是为什么:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆