Jekyll on macOS

1. Install Ruby

I prefer to install from sources: https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz

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

2. Install RubyGems

I prefer to install from sources: https://rubygems.org/pages/download

> 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 https://rubygems.org/
> gem sources -a http://rubygems.org/

(if you want to build with OpenSSL, take a look here: http://www.owsiak.org/?p=3262 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: https://stackoverflow.com/questions/46019526/

Leave a comment

Your comment