Jekyll 홈페이지를 Ruby를 다운받아 설치 후 Jekyll과 Bundler를 설치했다. 그리고 그곳에서 제시하는 기본 테마로 로컬 실행을 해보면 아주 잘 된다.

chcp 65001
bundle exec jekyll serve

문제는 기본 테마가 아니라 github에 있는 테마를 clone해서 위와 같이 실행했을 때 아래와 같이 오류가 나타난다.

Traceback (most recent call last):
        2: from E:/Ruby25-x64/bin/jekyll:23:in `<main>'
        1: from E:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb:482:in `block in replace_bin_path'
E:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb:462:in `block in replace_bin_path': can't find executable jekyll for gem jekyll. jekyll is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)

원인은 간단하게도 clone한 테마의 bundler 버전과 설치한 bundler 버전이 맞지 않은 것이다.

테마에 포함되어있는 Gemfile.lock 파일의 BUNDLED WITH에서 버전을 확인할 수 있다.

bundle install

으로 테마의 버전을 현재 설치된 jekyll의 버전과 맞춘다.

이런 간단한 걸로 깃헙 블로그 만들기를 몇 번이나 그만두었던지..
Jeongjin Kim 님 감사합니다! Jekyll - 버전 의존성 문제로 설치가 안될 때