Can't install Jekyll - "fatal error: 'openssl/ssl.h' file not found"

I am attempting to locally host a Jekyll site on Mac OS.
Upon downloading Jekyll with gem install jekyll I am met with error:

current directory: /Users/main/.rvm/gems/ruby-3.0.0/gems/eventmachine-1.2.7/ext
make DESTDIR\= sitearchdir\=./.gem.20221106-46436-a98sx9 sitelibdir\=./.gem.20221106-46436-a98sx9
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:119:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make: *** [binder.o] Error 1

make failed, exit code 2

I am on MacOS Ventura 13.0.

  • openssl version returns LibreSSL 3.3.6

  • jekyll -v returns can't find gem jekyll (>= 0.a) with executable jekyll (Gem::GemNotFoundException) (obviously)

  • ruby -v returns ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin22]

  • gem -v returns 3.3.25

  • bundle -v returns Bundler version 2.3.25

  • rvm list returns =* ruby-3.0.0 [ x86_64 ]

  • gem list returns

rubygems-bundler (1.4.5)
rubygems-update (3.3.25, 3.0.0)
rvm (1.11.3.9)

… among other things. No Ruby version is listed.

I have attempted brew link --force openssl , so that I can run gem install event machine (with flags), but brew link --force openssl returns

If you need to have openssl@3 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

I ran that command, re-ran brew link --force openssl, and it returned the same error.

What do I do?
Thank you for any help.

Do you have the perquisites installed?

Also I created this video that shows how to install Jekyll on a Mac (it says Apple Silicon but works on Intel Macs as well):

Or if you don’t want to deal with installing Ruby and putting all this code on your computer, you can use Docker containers which is what I do on my Mac nowadays: