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.
Install ruby 1.9.1 and rubygems.
sudo apt-get install ruby1.9.1 sudo apt-get install ruby1.9.1-dev
Set as default ruby version
cd /etc/alternatives sudo ln -sf /usr/bin/ruby1.9.1 ruby
Check with ruby --version
.
Install nodejs to avoid missing javascript runtime
sudo apt-get install nodejs
Install json
sudo gem install json
Install Jekyll
sudo gem install jekyll
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!
This work is licensed under a Creative Commons Attribution 4.0 International License.