Jekyll on macOS

1. Install Ruby

I prefer to install from sources:

> ./configure --prefix=$HOME/opt/ruby
> make
> make install

2. Install RubyGems

I prefer to install from sources:

> export PATH=$HOME/opt/ruby/bin:$PATH
> ruby setup.rb

3. Change repo location

I compile Ruby without ssh support. I have to change the ruby gems repo

> gem sources -r
> gem sources -a

(if you want to build with OpenSSL, take a look here: There is a sample related to building OpenSSL at macOS)

4. You can install Jekyll

> gem install jekyll
> jekyll --version
jekyll 3.5.2

That’s it.

Source: Originally, posted here: