> Jekyll problems with Ruby 3.0 | Courtney Rosenthal

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

Holiday Letter 2023

Jan 4, 2024

Greetings! I hope you had a most excellent 2023.

Austin Open Data

Jul 27, 2023

I gave this statement today, in response to a recent audit of the City of Austin Open Data Portal....

Holiday Letter 2022

Dec 23, 2022

Greetings! I hope you had a most excellent 2022.

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...