无法在Mac上安装HomeBrew

时间:2017-06-14 09:47:50

标签: ruby macos sass openssl homebrew

我真的需要安装Sass。但后来它导致了这个错误:

ERROR:  Could not find a valid gem 'sass' (>= 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 (https://rubygems.org/latest_specs.4.8.gz)

我的ruby版本是:

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

我的rubygem版本是:

2.0.14.1

而我的openssl版本是:

OpenSSL 0.9.8zh 14 Jan 2016

所以我尝试研究错误,然后它引导我到这个link,有很多关于安装RVM但我不能因为卷曲(60)错误 - 所以我检查了另一个可能的原因它描述了我应该升级我的openssl的诊断。所以...

  1. 我尝试安装自制软件,以便让我更新openssl,用PATH="/usr/local/bin:$PATH"

    创建一个.bash_profile
  2. 执行此操作到终端/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  3. 然后发生了另一个错误:

    curl: (60) SSL certificate problem: Invalid certificate chain
    More details here: https://curl.haxx.se/docs/sslcerts.html
    
    curl performs SSL certificate verification by default, using a "bundle"
     of Certificate Authority (CA) public keys (CA certs). If the default
     bundle file isn't adequate, you can specify an alternate file
     using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
     the bundle, the certificate verification probably failed due to a
     problem with the certificate (it might be expired, or the name might
     not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
     the -k (or --insecure) option.
    

    我已经检查了我的证书,但没有过期证书。

    如果您还需要了解任何其他详细信息,请告知我们。我已经非常绝望了......我只想继续学习SASS。 T_T

1 个答案:

答案 0 :(得分:0)

万一有人遇到这个问题..这是由于代理。只需使用http。谢谢。