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 trial

Ruby

Error 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

Hi 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.

That article has a workaround for installing a pre release version of Nokogiri that works.

Let me know how you get on.

Steve.

nokogiri

Ooh, I see. Thanks for helping me out Steve!

No problem! Let me know how you get on. :+1:

Thank you so so much it worked out!

Excellent!! :smile: