This is a step by step guide on how to create a Jekyll blog on github on MacOS Mojave. First, we install latest version of Ruby and Gem. Then it shows how to create a Jekyll blog on github.
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
$ \curl -sSL https://get.rvm.io | bash
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
Installing RVM to /Users/tskim/.rvm/
Adding rvm PATH line to /Users/tskim/.profile /Users/tskim/.mkshrc /Users/tskim/.bashrc /Users/tskim/.zshrc.
Adding rvm loading line to /Users/tskim/.profile /Users/tskim/.bash_profile /Users/tskim/.zlogin.
Installation of RVM in /Users/tskim/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/tskim/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
Thanks for installing RVM ๐
Please consider donating to our open collective to help us maintain RVM.
๐ Donate: https://opencollective.com/rvm/donate
Installing Ruby may take for a while cause it downloads and install many files from Internet.
$ rvm install ruby
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-3.0.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system........./
$ rvm --default use ruby
$ ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin18]
$ gem install bundler jekyll
$ gem install jekyll -- --with-cppflags=-I/usr/local/opt/openssl/include