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! While you're at it, check out some resources Treehouse students have shared here.
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 trialNils Garland
18,416 PointsError installing rails.
So I had downloaded ruby with the gems documentation server and I tried this:
ruby --version
it returned: ruby 2.3.0p0
gem install rails --no-document
So I get the Error: Error installing rails: nokogiri requires Ruby version < 2.3 ,>= 1.9.2
So I am confused because if nokogiri requires 2.3, it said i have 2.3. Does anybody understand? :(
1 Answer
Steve Hunter
57,712 PointsHi Nils,
It is looking for <2.3, i.e. 2.2. So it is wanting Ruby above (or equal to) 1.9.2 and less than 2.3 but not including 2.3
Try changing the Ruby gem to fix that. There's an article here on the topic. Looks like a Windows issue?
Steve.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsThat article has a workaround for installing a pre release version of Nokogiri that works.
Let me know how you get on.
Steve.
Nils Garland
18,416 PointsNils Garland
18,416 PointsOoh, I see. Thanks for helping me out Steve!
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsNo problem! Let me know how you get on.
Nils Garland
18,416 PointsNils Garland
18,416 PointsThank you so so much it worked out!
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsExcellent!!