gayanvirajith / harmony

A responsive Jekyll theme.
http://gayan.me/harmony
Other
224 stars 204 forks source link

cannot load such file -- jekyll/version (LoadError) #2

Closed chriskacerguis closed 9 years ago

chriskacerguis commented 9 years ago

Hello,

I followed the directions on your site to install Jekyll with your theme, but I'm getting the following error when I attempt to run jekyll serve

WARN: Unresolved specs during Gem::Specification.reset:
      redcarpet (~> 3.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/jekyll-2.5.2/bin/jekyll:21:in `block in <top (required)>': cannot load such file -- jekyll/version (LoadError)
    from /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/mercenary-0.3.5/lib/mercenary.rb:18:in `program'
    from /Users/username/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/jekyll-2.5.2/bin/jekyll:20:in `<top (required)>'
    from /Users/username/.rbenv/versions/2.1.4/bin/jekyll:23:in `load'
    from /Users/username/.rbenv/versions/2.1.4/bin/jekyll:23:in `<main>'

Any ideas as to what I could be doing wrong?

chriskacerguis commented 9 years ago

Just a quick update. I had setup the following in the Gemfile (per http://jekyllrb.com/docs/github-pages/)

source 'https://rubygems.org'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']

And when I removed the Gemfile / Gemfile.lock all started to work.

gayanvirajith commented 9 years ago

Hi Chris,

Thanks for reporting this issue and also trying out harmony. Glad you found out the fix. Thanks to you I have updated the Gemfile too.

Happy Jekylling!