“certificate verify failed” error when installing Ruby gems on Windows

前端 未结 2 1219
萌比男神i
萌比男神i 2020-12-30 05:07

I am using a Windows PC running 8.1 and working with Ruby Installer 2.1.5.

While installing a gem I am getting a error:

C:\\> gem install bundle
E         


        
相关标签:
2条回答
  • 2020-12-30 05:55

    I had this problem too. But using the older version is not the proper solution.

    Here is the two solution help to fix this certificate error

    1. Using the http instead of https will allow you to install the gem without that error

    gem install bundler -r --source http://rubygems.org/

    2. Update the certificate based on the solution provided in the below link

    https://gist.github.com/luislavena/f064211759ee0f806c88

    0 讨论(0)
  • 2020-12-30 05:55

    I had this problem, it seems the problem is due to ruby installer version (2...) , I tried version 1.9.3 and the problem was solved.

    0 讨论(0)
提交回复
热议问题