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

J Quinn
J Quinn
2,439 Points

Can't install Ruby Rails v 5.0.0 in video

When I follow installing rails on windows video, I type following in cmd prompt:

gem install rails --version 5.0.0 ERROR: Could not find a valid gem 'rails' (= 5.0.0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/specs.4.8.gz)

How I get around this? Thanks

2 Answers

Carlos Alberto Del Cueto Carrejo
Carlos Alberto Del Cueto Carrejo
13,817 Points

The reason why you can't download the Rails gem is because either you have an old version of rubygems , you can check this by running gem which rubygems on your console, or you cannot verify the trust certificate of the page. For the latter I would suggest you to follow this guide, the solution is in the last four steps of the article. I don't want to sound rude or anything, but have you consider running Linux as a development environment for Rails, I know out of experience that Windows will create a lot of inconveniences down the line . Good luck, happy coding.

Here is the link: https://gist.github.com/luislavena/f064211759ee0f806c88

Eliot Ostling
Eliot Ostling
9,599 Points

Hello, So I had this problem there is an update that gives should help. Open up your ruby terminal go to your project where rails should be and then execute these commands

C:>gem install --local C:\rubygems-update-2.6.7.gem C:>update_rubygems --no-ri --no-rdoc then C:>gem uninstall rubygems-update -x

And finally the documentation just in case. http://guides.rubygems.org/ssl-certificate-update/ Cheers