SSL_connect Error when installing Jekyll in Windows

来源:互联网 发布:广联达预算软件破解 编辑:程序博客网 时间:2024/05/16 15:52

After you installed Ruby on Windows, then you install Jekyll by the following command

  • gem install jekyll

Maybe you will get this error
SSL_connect Error

Then I searched this link to solve this issue. First I downloaded the cacert.pem using this command:

  • curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem

But the content is like this:
cacert_download_failed

So I open the file by its link, and copy it to my local file name cacert.pem. Then add the environment variable SSL_CERT_FILE as value “C:\RailsInstaller\Ruby2.0.0\bin\cacert.pem”. Now we can run the following command to install Jekyll:

  • gem install jekyll
    But there is still an error:
    Ruby_sources_issue

We need to change the source of ruby:

  • gem sources –remove https://rubygems.org/
  • gem sources –add https://ruby.taobao.org/
  • gem sources -l
0 0
原创粉丝点击