The easiest way to install Jekyll on Ubuntu 14.04

I spent a while figuring out that if you install ruby1.9 then you will have troubles down the road. So then I tryed to use rbenv to install ruby2.2 but that didn’t work out. So I ended up finding a PPA and installed it that way.

Install the prerequisites

sudo apt-get install build-essentials gcc make git

Add the Brightbox PPA and Install ruby and ruby-dev

sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.2 ruby2.2-dev

Install nodejs

sudo apt-get install nodejs

Install Jekyll and JSON

sudo gem install jekyll
sudo gem install json

OPTIONAL (this will install extras but is not required)

sudo apt-get install zlib1g-dev
sudo gem install github-pages

To Run Jekyll

jekyll serve --watch

--watch will regenerate the blog when you make changes

Tags: jekyll ubuntu install-setup