'Can't run Jekyll on Mac OS 12

I've had problems running Jekyll since updating to Monterey. So I did a clean install but the problems remain. I carefully followed the tutorial from jekyllrb.com to install ruby and Jekyll.

When I try to run the local server from a website I created with Jekyll before OS12 (and which still runs perfectly well on a Mac with OS11), I get this:

Could not find addressable-2.7.0 in any of the sources
Run `bundle install` to install missing gems.

And if I do run 'bundle install' this does not solve the problem. I get the same error message again and again, as if it were looking for the script in the wrong location. So, is there a specific working directory I need to run this install command from? Is it a PATH problem?

When I try to create a website from scratch following the tutorial from jekyllrb.com :

Jekyll create mywebsite
cd mywebsite
bundle exec Jekyll serve

I get this:

bundler: failed to load command: jekyll (/usr/local/lib/ruby/gems/3.0.0/bin/jekyll)

/Users/stephane/.local/share/gem/ruby/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)

Now, is this a PATH issue?

Here's my PATH:

stephane@Stephanes-iMac ~ % echo $PATH | tr ":" "\n"
/Users/stephane/.gem/ruby/3.0.0/bin
/usr/local/opt/ruby/bin
/usr/local/lib/ruby/gems/3.0.0/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

Thank you very much for any help you could give me :)

Stephane



Solution 1:[1]

I had the same problem and saw this: https://talk.jekyllrb.com/t/load-error-cannot-load-such-file-webrick/5417/2

I did bundle add webrick and that one worked for me

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 brighthammer