I have a problem running Jekyll on OS X Yosemite 10.10.5. When I run jekyll serve
, I get the following error:
MacBook-Pro-Svetlana:iloveip svetlana$ jekyll serve
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'jekyll' (>= 0) among 22 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /usr/bin/jekyll:22:in `<main>'
MacBook-Pro-Svetlana:iloveip svetlana$
I had to reinstall OS X Yosemite. And I might have done something wrong. First, I installed Xcode Command Line Tools without actually installing Xcode. Then I followed instructions on this site to install Ruby and Git. After that I installed Jekyll but it wasn't running with jekyll serve
. So I installed Xcode, but still got some errors.
So I upgraded RVM, and also upgraded Ruby to 2.2.3. After that I uninstalled and installed Jekyll once again. But when I try to run it I get the error above.
What can I do to fix it?