TL;DR
curl -L https://get.rvm.io | bash -s stable
rvm install ruby-2.6.3
rvm use ruby-2.6.3
sudo gem install jekyll
- Install the Ruby Version Manager
rvm
curl -L https://get.rvm.io | bash -s stable
- Install ruby 2.6.3 or higher:
rvm install ruby-2.6.3
Without this step you’ll get
Undefined symbols for architecture i386
error later when installing jekyll. - Select installed version of
ruby
:rvm use ruby-2.6.3
- Install
jekyll
sudo gem install jekyll
Note: you might need to launch a new teminal tab to make
jekyll
command available. - Now you can serve your static website locally:
jekyll serve --trace