Windows下用gem install jekyll命令安装jekyll错误的解决方案

ERROR: Failed to build gem native extension

错误如下:

ruby版本也正常,安装的也是with devkit的版本

Temporarily enhancing PATH for MSYS/MINGW... 
Building native extensions. This could take a while...    
ERROR:  Error installing jekyll:                    
ERROR: Failed to build gem native extension.                                           
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser                                                                     
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200725-11868-qpbmqf.rb extconf.rb  
creating Makefile                                                                                                                                                        
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser                                                                         
make "DESTDIR=" clean                                                                                                                                                       
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser                                                                         
make "DESTDIR="                                                                                                                                                             
make failedNo such file or directory - make "DESTDIR="                                                                                                                                                                                                                                                                                                  
Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/http_parser.rb-0.6.0 for inspection.                                                              
Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-
mingw32/2.6.0/http_parser.rb-0.6.0/gem_make.out 

解决方法

输入ridk install,安装MSYS2 and MINGW development toolchain
在这里插入图片描述