Install Jekyll on RHEL7
Written by Ilkka TengvallWhile I was creating this blog I needed to get Jekyll tooling on my laptop. I happen to be fan of Linux, and decided to eat our own dogfood. I recently installed RHEL7 on my laptop instead of the normal Fedora.
Jekyll works fine on RHEL, but like often, you run into having stable (old) stuff installed on your system. Jekyll will require more fresh ruby than what comes by default in RHEL7. You need feature called Software Collections, which is a way to provide developers more fresh set of tools, with shorter lifecycle for support.
Here are the command you need to install Jekyll on RHEL7:
sudo subscription-manager repos --enable rhel-workstation-rhscl-7-rpms
sudo yum install rh-ruby23 rh-ruby23-rubygem-bundler rh-ruby23-ruby-devel zlib-devel
sudo yum group install "Development Tools"
scl enable rh-ruby23 bash
gem install jekyll
jekyll new redhatnordicssa
cd redhatnordicssa
bundle exec jekyll serve
What is that gibberish all about?
The above commands are explained here line by line:
- enable repository for Software collections (SC)
- install newer ruby stuff from SC
- enter SC shell
- install jekyll using ruby gem
- create new Jekyll site
- enter the directory for your site
- start local server so you can test your site on http://localhost:4000
Then you can go ahead and start following Jekyll tutorials. Have fun!
BR, ikke
I work as an SA at Red Hat Nordics, mainly with speeding things up using automation and hybrid cloud.