Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Seth Kroger56,407 Points
If 'jekyll -v' gives you the error "cannot load such file -- jekyll/version" try 'gem cleanup'
Putting this fix out there for anyone who gets the same error I did after installing.
Stu Cowley26,287 Points
This also helped with the jekyll: command not found issue I was tearing my hair out over.
Kevin LozandierCourses Plus Student 53,747 Points
Guil Hernandez Stu Cowley Seth Kroger Doesn't work for me; for problems like this, it's probably going to require adding jekyll to the user's preferred command prompt (
fish, & etc).
This is unfortunately a common problem if users use
rvm & so on because jekyll way of installing with environments with these Ruby managers has quirks most novices of such tools will not be able to debug intuitively.
This is what I generally do for
rbenv for example.
I couldn't get Jekyll installed either, but I didn't see any error. In fact, my terminal returned successfully installation even though "Jekyll -v" remained unrecognizable command for my environment.
Here are processes/tricks I tried to get Jekyll installed:
- gem update
//this step could really take a "while", approx. 2-3 episodes from Treehouse Friend, even though respectively speaking, I doubt the necessity for this step.
- install rbenv and Jekyll
- reinstall home-brew
- make sure global ruby version is consistent with chosen version installed by rbenv //ref. http://stackoverflow.com/questions/30288171/os-x-10-9-when-installing-ruby-2-2-2-rbenv-cannot-globally-change-default-ruby
- sudo su and then gem install Jekyll