Jekyll_(software)_Logo.png

安装

  1. 安装 Ruby+Devkit :https://rubyinstaller.org/downloads/
  2. 运行 ridk install,安装选项选择 MSYS2 and MINGW development tool chain

    (base) PS C:\Users\csap0> ridk install
     _____       _           _____           _        _ _         ___
    |  __ \     | |         |_   _|         | |      | | |       |__ \
    | |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
    |  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
    | | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_
    |_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                        __/ |           _
                       |___/          _|_ _  __   | | o __  _| _     _
                                       | (_) |    |^| | | |(_|(_)\^/_>
    
       1 - MSYS2 base installation
       2 - MSYS2 system update (optional)
       3 - MSYS2 and MINGW development toolchain
    
    Which components shall be installed? If unsure press ENTER [1,3] 3
    
    > sh -lc true
    MSYS2 seems to be properly installed
    Install MSYS2 and MINGW development toolchain ...
    > pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-libmangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf mingw-w64-ucrt-x86_64-pkgconf
    警告:autoconf-wrapper-15-1 已经为最新 -- 跳过
    警告:autogen-5.18.16-4 已经为最新 -- 跳过
    警告:automake-wrapper-11-4 已经为最新 -- 跳过
    警告:diffutils-3.8-4 已经为最新 -- 跳过
    警告:file-5.43-1 已经为最新 -- 跳过
    警告:gawk-5.2.1-1 已经为最新 -- 跳过
    警告:grep-1~3.0-6 已经为最新 -- 跳过
    警告:libtool-2.4.7-2 已经为最新 -- 跳过
    警告:m4-1.4.19-2 已经为最新 -- 跳过
    警告:make-4.3-4 已经为最新 -- 跳过
    警告:patch-2.7.6-2 已经为最新 -- 跳过
    警告:sed-4.9-1 已经为最新 -- 跳过
    警告:texinfo-6.8-6 已经为最新 -- 跳过
    警告:texinfo-tex-6.8-6 已经为最新 -- 跳过
    警告:wget-1.21.3-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-binutils-2.39-2 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-crt-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-gcc-12.2.0-6 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-gcc-libs-12.2.0-6 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-headers-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-libmangle-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-libwinpthread-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-make-4.4-2 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-tools-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-winpthreads-git-10.0.0.r149.g3dfe76203-1 已经为最新 -- 跳过
    警告:pkgconf-1.8.0-2 已经为最新 -- 跳过
    警告:mingw-w64-ucrt-x86_64-pkgconf-1~1.8.0-2 已经为最新 -- 跳过
     今日无事可做
    Install MSYS2 and MINGW development toolchain succeeded
    
    You can use 'ridk enable' to activate the MSYS2 tools on the command prompt.
    
       1 - MSYS2 base installation
       2 - MSYS2 system update (optional)
       3 - MSYS2 and MINGW development toolchain
    
    Which components shall be installed? If unsure press ENTER []  
  1. 重新打开 Shell,输入 gem install jekyll bundler

    (base) PS C:\Users\****> gem install jekyll bundler
    Fetching webrick-1.8.1.gem
    Fetching safe_yaml-1.0.5.gem
    Fetching unicode-display_width-2.4.2.gem
    Fetching terminal-table-3.0.2.gem
    Fetching rouge-4.1.0.gem
    Fetching forwardable-extended-2.6.0.gem
    Fetching pathutil-0.16.2.gem
    Fetching mercenary-0.4.0.gem
    Fetching liquid-4.0.4.gem
    Fetching kramdown-2.4.0.gem
    Fetching kramdown-parser-gfm-1.1.0.gem
    Fetching ffi-1.15.5-x64-mingw-ucrt.gem
    Fetching rb-inotify-0.10.1.gem
    Fetching rb-fsevent-0.11.2.gem
    Fetching listen-3.8.0.gem
    Fetching jekyll-watch-2.2.1.gem
    Fetching google-protobuf-3.22.2-x64-mingw-ucrt.gem
    Fetching sass-embedded-1.59.3-x64-mingw-ucrt.gem
    Fetching jekyll-sass-converter-3.0.0.gem
    Fetching concurrent-ruby-1.2.2.gem
    Fetching i18n-1.12.0.gem
    Fetching http_parser.rb-0.8.0.gem
    Fetching eventmachine-1.2.7.gem
    Fetching em-websocket-0.5.3.gem
    Fetching jekyll-4.3.2.gem
    Fetching colorator-1.1.0.gem
    Fetching public_suffix-5.0.1.gem
    Fetching addressable-2.8.1.gem
    Successfully installed webrick-1.8.1
    Successfully installed unicode-display_width-2.4.2
    Successfully installed terminal-table-3.0.2
    Successfully installed safe_yaml-1.0.5
    Successfully installed rouge-4.1.0
    Successfully installed forwardable-extended-2.6.0
    Successfully installed pathutil-0.16.2
    Successfully installed mercenary-0.4.0
    Successfully installed liquid-4.0.4
    Successfully installed kramdown-2.4.0
    Successfully installed kramdown-parser-gfm-1.1.0
    Successfully installed ffi-1.15.5-x64-mingw-ucrt
    Successfully installed rb-inotify-0.10.1
    Successfully installed rb-fsevent-0.11.2
    Successfully installed listen-3.8.0
    Successfully installed jekyll-watch-2.2.1
    Successfully installed google-protobuf-3.22.2-x64-mingw-ucrt
    Successfully installed sass-embedded-1.59.3-x64-mingw-ucrt
    Successfully installed jekyll-sass-converter-3.0.0
    Successfully installed concurrent-ruby-1.2.2
    Successfully installed i18n-1.12.0
    Temporarily enhancing PATH for MSYS/MINGW...
    Building native extensions. This could take a while...
    Successfully installed http_parser.rb-0.8.0
    Building native extensions. This could take a while...
    Successfully installed eventmachine-1.2.7
    Successfully installed em-websocket-0.5.3
    Successfully installed colorator-1.1.0
    Successfully installed public_suffix-5.0.1
    Successfully installed addressable-2.8.1
    Successfully installed jekyll-4.3.2
    Parsing documentation for webrick-1.8.1
    Installing ri documentation for webrick-1.8.1
    Parsing documentation for unicode-display_width-2.4.2
    Installing ri documentation for unicode-display_width-2.4.2
    Parsing documentation for terminal-table-3.0.2
    Installing ri documentation for terminal-table-3.0.2
    Parsing documentation for safe_yaml-1.0.5
    Installing ri documentation for safe_yaml-1.0.5
    Parsing documentation for rouge-4.1.0
    Installing ri documentation for rouge-4.1.0
    Parsing documentation for forwardable-extended-2.6.0
    Installing ri documentation for forwardable-extended-2.6.0
    Parsing documentation for pathutil-0.16.2
    Installing ri documentation for pathutil-0.16.2
    Parsing documentation for mercenary-0.4.0
    Installing ri documentation for mercenary-0.4.0
    Parsing documentation for liquid-4.0.4
    Installing ri documentation for liquid-4.0.4
    Parsing documentation for kramdown-2.4.0
    Installing ri documentation for kramdown-2.4.0
    Parsing documentation for kramdown-parser-gfm-1.1.0
    Installing ri documentation for kramdown-parser-gfm-1.1.0
    Parsing documentation for ffi-1.15.5-x64-mingw-ucrt
    Installing ri documentation for ffi-1.15.5-x64-mingw-ucrt
    Parsing documentation for rb-inotify-0.10.1
    Installing ri documentation for rb-inotify-0.10.1
    Parsing documentation for rb-fsevent-0.11.2
    Installing ri documentation for rb-fsevent-0.11.2
    Parsing documentation for listen-3.8.0
    Installing ri documentation for listen-3.8.0
    Parsing documentation for jekyll-watch-2.2.1
    Installing ri documentation for jekyll-watch-2.2.1
    Parsing documentation for google-protobuf-3.22.2-x64-mingw-ucrt
    unable to convert "\xEC" from ASCII-8BIT to UTF-8 for lib/google/protobuf/descriptor_pb.rb, skipping
    Installing ri documentation for google-protobuf-3.22.2-x64-mingw-ucrt
    Parsing documentation for sass-embedded-1.59.3-x64-mingw-ucrt
    Installing ri documentation for sass-embedded-1.59.3-x64-mingw-ucrt
    Parsing documentation for jekyll-sass-converter-3.0.0
    Installing ri documentation for jekyll-sass-converter-3.0.0
    Parsing documentation for concurrent-ruby-1.2.2
    Installing ri documentation for concurrent-ruby-1.2.2
    Parsing documentation for i18n-1.12.0
    Installing ri documentation for i18n-1.12.0
    Parsing documentation for http_parser.rb-0.8.0
    unknown encoding name "chunked\r\n\r\n25" for ext/ruby_http_parser/vendor/http-parser-java/tools/parse_tests.rb, skipping
    Installing ri documentation for http_parser.rb-0.8.0
    Parsing documentation for eventmachine-1.2.7
    Installing ri documentation for eventmachine-1.2.7
    Parsing documentation for em-websocket-0.5.3
    Installing ri documentation for em-websocket-0.5.3
    Parsing documentation for colorator-1.1.0
    Installing ri documentation for colorator-1.1.0
    Parsing documentation for public_suffix-5.0.1
    Installing ri documentation for public_suffix-5.0.1
    Parsing documentation for addressable-2.8.1
    Installing ri documentation for addressable-2.8.1
    Parsing documentation for jekyll-4.3.2
    Installing ri documentation for jekyll-4.3.2
    Done installing documentation for webrick, unicode-display_width, terminal-table, safe_yaml, rouge, forwardable-extended, pathutil, mercenary, liquid, kramdown, kramdown-parser-gfm, ffi, rb-inotify, rb-fsevent, listen, jekyll-watch, google-protobuf, sass-embedded, jekyll-sass-converter, concurrent-ruby, i18n, http_parser.rb, eventmachine, em-websocket, colorator, public_suffix, addressable, jekyll after 28 seconds
    Fetching bundler-2.4.9.gem
    Successfully installed bundler-2.4.9
    Parsing documentation for bundler-2.4.9
    Installing ri documentation for bundler-2.4.9
    Done installing documentation for bundler after 0 seconds
    29 gems installed
  2. 检查 jekyll 是否安装成功:jekyll -v

    (base) PS C:\Users\****> jekyll -v
    jekyll 4.3.2