Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't find executable jekyll for gem jekyll --- Jekyll Cannot be executed

Tags:

jekyll

bundle exec jekyll serve
Traceback (most recent call last):
    4: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
    3: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
    2: from /Users/Suwan_Long/.rvm/rubies/ruby-2.6.3/bin/jekyll:23:in `<main>'
    1: from /Users/Suwan_Long/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:480:in `block in replace_bin_path'
/Users/Suwan_Long/.rvm/gems/ruby-2.6.3/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:460: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)

I have installed Jekyll and ruby, but it still shows there is no executable jekyll. Can anyone help me on this please! Thanks in advance :)

like image 891
Suwan Avatar asked Dec 23 '19 20:12

Suwan


1 Answers

The following line in the error message says it all.

jekyll is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

Edit Gemfile to include the jekyll gem:

gem "jekyll", "~> 4.0"
like image 190
ashmaroli Avatar answered Nov 18 '22 00:11

ashmaroli