How to Install Jekyll in Raspberry Pi

Installing ruby

Official documentation asks that the system has ruby installed and should be version 2.2.5 or higher. Install ruby with the command-

sudo apt-get install ruby-full ruby-dev

Installing other dependencies

Jekyll requires gcc, g++ and make. These are build dependencies –

sudo apt-get install gcc g++ make

Installing Jekyll

After all the dependencies are met, it’s easy to install jekyll

sudo gem install jekyll bundler

Running Jekyll

Build the source code –

bundle exec jekyll build

To have a clean build

bundle exec jekyll clean
bundle exec jekyll build

To see the progress and build in realtime and regenerate with each change in source code and available in a local server –

bundle exec jekyll serve

Browse

Now browse to http://localhost:4000

Enjoy!