Updating Ruby on Apple M1 MacBook
After a 12 months-long hiatus I started blogging again. Expired TLS certificate and the process of transitioning to LetsEncrypt were the inspiration and motivated me to share the knowledge with the world.
I also need to mention that I had to update Ruby on my Apple M1-powered MacBook as I was getting tons of errors when trying to re-build the blog. Note that I had the latest macOS Monterey which comes with pre-installed Ruby 2.7.0, but it wouldn’t work for me. I needed to update the version that I previously installed via Homebrew.
After some trial and error, I stumbled upon “The Definitive Guide To Installing Ruby Gems on a Mac” by Moncef Belyamani. The guide was excellent and I specifically followed all steps in section Install Ruby with Homebrew.
The following version was installed side-by-side with the one Apple provides:
Jekyll was still giving me trouble, this time due to missing webrick - apparently Ruby 3.0 lacks that packages: Jekyll serve fails on Ruby 3.0 (webrick missing) #752.
I quickly resolved it by adding webrick…
… and re-built and tested my blog: