👉 Update on 27-08-2022 Moving to Hugo and other updates!

I was very excited to try Jekyll and Github Pages when I heard about it. When I try to install jekyll, I got below error

root@veeru:/home/veeru# gem install jekyll bundler
Fetching: public_suffix-3.0.1.gem (100%)
ERROR:  Error installing jekyll:
    public_suffix requires Ruby version >= 2.1.
Fetching: bundler-1.16.1.gem (100%)
Successfully installed bundler-1.16.1
1 gem installed
Installing ri documentation for bundler-1.16.1...
Installing RDoc documentation for bundler-1.16.1...

I don’t even know what that means(I’m not a Ruby guy, so..). Clearly jekyll needs more than Ruby version 2.1, but in Ubuntu 14.04 if you type apt-get install ruby -y you will end up having Ruby 1.9. So let’s install Ruby 2.4 like below

sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.4 ruby2.4-dev make g++ -y

Then install jekyll

$ gem install jekyll bundler

What’s next?

I found a blog which exactly I was looking for to deploy a website on Github Pages. As Drew Silcock said in the blog, it is better to maintain website source code and compiled websites on the same repository. Just head over to his blog and check the stuff