Error installing Jekyll, requires Ruby >= 2.0.0

faehnrich picture faehnrich · Nov 3, 2015 · Viewed 14.1k times · Source

I get the error

Error installing jekyll:
jekyll requires Ruby version >= 2.0.0.

when I run

sudo gem install jekyll

"ruby -v" says I have ruby version 1.9.3

How do I install Jekyll? Do I need to upgrade ruby? If so, how?

Update - I installed ruby 2.0.0 with rvm but get the same error. Since trying to install with gem, could that still be trying to install with the older version of ruby? If so, how to find and change?

Answer

hectorh30 picture hectorh30 · Nov 4, 2015

Try

sudo gem install jekyll -v 2.5

The default command apparently tries to install Jekyll 3, which was released on October 27th 2015. The 2.5 version still works with Ruby 1.9.3, and its quite allright for me, probably for you too.