I’m not a Ruby expert and I don’t have much experience with it, so following steps could be not the best ones, but it worked for me.
First you need to remove jekyll (even all rubygems would be better) and ruby. Les’t start from scratch.
Jekyll 3 doesn’t work anymore with version 1.9.3 of Ruby, AFAIK apt-get provide only 1.9.3, so we need to install it using another approach. Here is the list of ways to do it. After several attempts with RVM I’ve chosen
ruby-install which was easier for me:
Then export ruby home in HOME variable:
Now check the version, should be 2.2.4:
This step is as usual, go here: https://rubygems.org/pages/download and follow the instructions (unpack archive, go there and run
Now we need to install jekyll gem and github-pages gems:
Now you are ready to blog)
In case you use pagination and have following exception while building your site:
Deprecation: You appear to have pagination turned on, but you haven’t included the ‘jekyll-paginate’ gem. Ensure you have ‘gems: [jekyll-paginate]’ in your configuration file.
Add following line to your config.xml: