Catalina and Ruby
Planted 02020-07-19
Running Jekyll on macOS Catalina
When I first updated my 2018 MacBook Pro, I had problems—as is due is course when installing ruby.
After upgrading a 2012 MacBook Pro, I had to deal with the same problems so I thought to rehash these notes.
I use Jekyll to build this site, and Jekyll runs on Ruby. To build the site locally I run bundle exec jekyll serve
.
Console would log errors like:
So I run gem install bundler:2.1.4
And it logs,
Haaaa. Okay what now?
I noticed new percentage signs in the macOS terminal. It turns out Apple changed the default shell from bash to zsh. I’m not knowledgable enough to really know what that means but if you are interested I’ve linked an article about it.
Because of this change, you have to rename your configuration files.
Bash things are now zsh things.
.bashrc is now .zshrc and .bash_profile is now .zprofile.
So first we need to install Ruby.
brew install ruby
Then find which ruby
If it shows /usr/bin/ruby then run
And then run which ruby
again.
It should be something other than /usr/bin/ruby now.
gem install bundler
No errors, everything works again.
As of writing the Jekyll docs are still for bash shells.