Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jekyll 4.2.0 won't serve -- can't find gem file #8531

davidhoyle opened this issue Jan 2, 2021 · 4 comments

Jekyll 4.2.0 won't serve -- can't find gem file #8531

davidhoyle opened this issue Jan 2, 2021 · 4 comments


Copy link

I can install and build:
dhoyle-MBP15-10566:myblog dhoyle$ jekyll -v
jekyll 4.2.0
dhoyle-MBP15-10566:myblog dhoyle$ which ruby
dhoyle-MBP15-10566:myblog dhoyle$ ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin18]
dhoyle-MBP15-10566:myblog dhoyle$ gem -v
dhoyle-MBP15-10566:myblog dhoyle$

But I can't serve, I get:

dhoyle-MBP15-10566:myblog dhoyle$ bundle exec jekyll serve
Configuration file: /Users/dhoyle/myblog/_config.yml
Source: /Users/dhoyle/myblog
Destination: /Users/dhoyle/myblog/_site
Incremental build: disabled. Enable with --incremental
Jekyll Feed: Generating feed for posts
done in 0.27 seconds.
Auto-regeneration: enabled for '/Users/dhoyle/myblog'
Jekyll 4.2.0 Please append --trace to the serve command
for any additional information or backtrace.
/usr/local/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in require': cannot load such file -- webrick (LoadError) from /usr/local/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in <top (required)>'

I tried:
sudo rm -rf _site
bundle update
bundle exec jekyll serve

But I'm still getting the same error. Can you tell me how I can get/load that file so jekyll serve will work?

Copy link

run bundle add webrick.

Copy link

That worked, thanks very much @ashmaroli!

jas0nmjames added a commit to jas0nmjames/ that referenced this issue Feb 7, 2021
Thanks to jekyll/jekyll#8531 I saw that Jekyll wasn't serving because I was missing the webrick gem.

Now that that's added, everything seems to be working!

In the future I will work with gems inside of the repo and I am now with gems in the vendor directory.  Just seems better to keep everything contained.
Copy link

kmk3 commented Apr 20, 2021

Duplicate of #8523.

Copy link

run bundle add webrick.

worked like a charm for me. Thanks!

Siphonophora added a commit to Siphonophora/ that referenced this issue Jul 15, 2021
@jekyll jekyll locked and limited conversation to collaborators Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

5 participants