使用命令:gem install jekyll
gem install jekyll
ERROR: Could not find a valid gem 'jekyll' (>= 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/specs.4.8.gz)
解决办法:
步骤1:gem sources --remove
https://rubygems.org
source https://rubygems.org not present in cache
步骤2:gem sources -a http://gems.ruby-china.org/
安装成功:
I:\rubyDevKit>gem sources -a http://gems.ruby-china.org/
http://gems.ruby-china.org/ added to sources
I:\rubyDevKit>gem sources -l
*** CURRENT SOURCES ***
http://gems.ruby-china.org/
I:\rubyDevKit>gem install jekyll
Fetching: safe_yaml-1.0.4.gem (100%)
Successfully installed safe_yaml-1.0.4
Fetching: rouge-1.11.1.gem (100%)
Successfully installed rouge-1.11.1
Fetching: forwardable-extended-2.6.0.gem (100%)
Successfully installed forwardable-extended-2.6.0
******
******
******
Installing ri documentation for addressable-2.5.0
Parsing documentation for jekyll-3.3.1
Installing ri documentation for jekyll-3.3.1
Done installing documentation for safe_yaml, rouge, forwardable-extended, pathutil, mercenary, liquid, kramdown, ffi, rb-inotify, rb-fsevent, listen, jekyll-watch, sass, jekyll-sass-converter, colorator, public_suffix, addressable, jekyll after 59 seconds
18 gems installed
小结:由于gem源(https://rubygems.org/)请求失败,http://ruby.taobao.org/这个也不行了,http://gems.ruby-china.org/可以用,http后面没有s。