Jekyll problems with Ruby 3.0

I fixed it.

movie still of Dr. Jekyll

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.

It's Just This Little Chromium Switch Here

Latest blog posts

Protect Austin Public Library from Library Book Bans

Aug 30, 2022

On Thursday, September 1, the Austin City Council is poised take a stand opposing book banning and library censorship. At...

Jekyll problems with Ruby 3.0

Aug 7, 2022

In my previous post, I discussed my publishing workflow for this website.

My Website Publishing Workflow

Aug 6, 2022

I used to run a pretty complicated publishing workflow on this website. I don’t anymore. I’m writing this up because...

New Open Source Tool: wipeout

Aug 5, 2022

I’ve released a new tool for easily performing a secure erase on disk drives.