如何在Windows上安装Jekyll

时间:2019-02-03 21:01:28

标签: ruby

我已经下载了rubyinstaller并尝试安装jekyll 使用

gem install jekyll

但是看来gem无法正常工作 我收到此错误

Traceback (most recent call last):
        13: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        12: from <internal:gem_prelude>:2:in `require'
        11: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems.rb:1375:in `<top (require
d)>'

版本为2.6

我尝试安装gem,但是git出现相同错误。

更新1

添加完整的错误消息

    Traceback (most recent call last):
        13: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        12: from <internal:gem_prelude>:2:in `require'
        11: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems.rb:1375:in `<top (require
d)>'
        10: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems.rb:1375:in `require'
         9: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/defaults/operating_system
.rb:3:in `<top (required)>'
         8: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/s
ingleton.rb:27:in `enable_dll_search_paths'
         7: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/m
sys2_installation.rb:96:in `enable_dll_search_paths'
         6: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/m
sys2_installation.rb:86:in `mingw_bin_path'
         5: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/m
sys2_installation.rb:73:in `msys_path'
         4: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/m
sys2_installation.rb:46:in `iterate_msys_paths'
         3: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/m
sys2_installation.rb:46:in `require'
         2: from C:/Ruby26-x64/lib/ruby/2.6.0/win32/registry.rb:4:in `<top (requ
ired)>'
         1: from C:/Ruby26-x64/lib/ruby/2.6.0/win32/registry.rb:72:in `<module:W
in32>'
C:/Ruby26-x64/lib/ruby/2.6.0/win32/registry.rb:72:in `find': unknown encoding na
me - CP720 (ArgumentError)

0 个答案:

没有答案