Installing Jekyll

Get the pre-requisites

Verify that you have Ruby, Ruby Gems, gcc / g++ and make (all required by Jekyll).

# verify
ruby -v
gem -v
gcc -v
g++ -v
make -v

Configure a base location for Ruby Gems and add the bin folder to your path

The GEM_HOME annoints the location where Ruby will store downloaded Gems.
The \bin subfolder links to the gem binaries, and this is added to the path variable.

# 1. '>>' Appends lines to your ~/.bashrc
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc

source ~/.bashrc

Install the Jekyll & Bundler Gems

# 2. install jekyll and bundler gems
gem install jekyll bundler
# consumes 46 Mb

At this stage, you’ve successfully installed Jekyll.

Now, onto creating your first Jekyll site.