gem install fails with openssl failure

后端 未结 11 1097
花落未央
花落未央 2020-12-07 07:51

I tried to install cocoapods (http://cocoapods.org/) on my OSX Mountain Lion.

 moshe-mbp:~ moshem$ gem install cocoapods
 ERROR:  Could not find a valid gem          


        
11条回答
  •  孤城傲影
    2020-12-07 08:53

    This is what solved it for me: Install this certificate: https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem

    In this folder: {rubyfolder}\lib\ruby\2.1.0\rubygems\ssl_certs

    This way you don't have to add insecure sources.

    More info here: https://gist.github.com/luislavena/f064211759ee0f806c88

提交回复
热议问题