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
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:
There seems to be some sort of conflict between MacOS 13 and Xcode 14.
This post says that there is a fix in Ruby 3.1.3 but when I do rbenv install 3.1.3 I get this error:
Installing ruby-3.1.3...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 13.1 using ruby-build 20221225)
Inspect or clean up the working tree at /var/folders/cn/ws27369s34z4503m3qxqbr780000gn/T/ruby-build.20221228130313.48649.DBSkdk
Results logged to /var/folders/cn/ws27369s34z4503m3qxqbr780000gn/T/ruby-build.20221228130313.48649.log
Last 10 log lines:
compiling dln.c
compiling localeinit.c
compiling array.c
compiling mjit.c
./tool/file2lastrev.rb:6:in `require': cannot load such file -- optparse (LoadError)
from ./tool/file2lastrev.rb:6:in `<main>'
make: *** [revision.tmp] Error 1
make: *** Waiting for unfinished jobs....
/bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb updated