Posted: August 7, 2022
In my previous post, I discussed my publishing workflow for this website.
I originally developed this website with the Jekyll static page generator running under Ruby 2.7, which is quite old. Yesterday, I decided it was time to upgrade to Ruby 3.0.
That’s great, but once I did the jekyll command started failing. Yikes!
$ bundle exec jekyll serve
/home/courtney/Workspace/website-crosenthal-com/vendor/bundle/ruby/3.0.0/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10: \
in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
There are known problems with Jekyll and Ruby 3.0. The Jekyll Quickstart directions tell you to install the webrick gem. That, unfortunately, was not sufficient to solve my problem.
I also needed the rexml gem. I ran:
$ bundle add rexml webrick
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
.
.
.
Installing webrick 1.7.0
Installing rexml 3.2.5
With that change, everything ran great:
$ bundle exec jekyll serve
Configuration file: /home/courtney/Workspace/website-crosenthal-com/_config.yml
Source: /home/courtney/Workspace/website-crosenthal-com
Destination: /home/courtney/Workspace/website-crosenthal-com/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
AutoPages: Disabled/Not configured in site.config.
Pagination: Complete, processed 1 pagination page(s)
done in 1.039 seconds.
Auto-regeneration: enabled for '/home/courtney/Workspace/website-crosenthal-com'
Server address: http://0.0.0.0:4000/
LiveReload address: http://0.0.0.0:35729
Server running... press ctrl-c to stop.