02 June 2014

Jekyll, Pandoc, and ruby

Next post Previous post

Installing Jekyll 2.0

I recently went through some computer trouble (Ubuntu 14.04 broke suspend on my aging Lenovo ThinkCentre M90z). As all my other computers happily run 12.04 LTS, I decided to roll-back and ‘clean-up’ my installation. Of the many re-installs I had to do, Jekyll was one of the trickiest, partly because it had updated to v2.0 since I last installed it. Here’s the closest I could re-create to what I did for future reference.

  1. Install ruby 1.9.1 and rubygems.

    sudo apt-get install ruby1.9.1 sudo apt-get install ruby1.9.1-dev

  2. Set as default ruby version

    cd /etc/alternatives sudo ln -sf /usr/bin/ruby1.9.1 ruby

Check with ruby --version.

  1. Install nodejs to avoid missing javascript runtime

    sudo apt-get install nodejs

  2. Install json

    sudo gem install json

  3. Install Jekyll

    sudo gem install jekyll

  4. Install Jekyll-pandoc plugin for using Pandoc markdown

    gem install pandoc-ruby

and follow the install directions. Note that since the update to Jekyll 2.0, this plugin is broken. I took the simple fix of changing pygments to highlight in my *_plugins/pandoc_markdown.rb* file, but there is a fixed fork.

That’s it! jekyll --version should work!

Creative Commons Licence
This work is licensed under a Creative Commons Attribution 4.0 International License.