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

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

I have an error installing Ruby through my cmd prompt

through windows 8.1...when i go through the instructions from the video i get an error message when i type in.. "gmd install bundler"

i get:

ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect retur ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( https://rubygems.org/latest_specs.4.8.gz)

ive followed other links from the forum but nothing seems to be working. any idea?

i click this link because there is an SSL certificate that could fix the issue but when i click the download, the file is in text format https://gist.github.com/luislavena/f064211759ee0f806c88#manual-solution-to-ssl-issue

4 Answers

Justin Horner
Justin Horner
Treehouse Guest Teacher

Hello Danny,

You've found the right source to fix this issue. To save the file directly as a .pem, right click on the link and select "Save link as...". This will download the file to your machine as "AddTrustExternalCARoot-2048.pem".

I hope this helps.

when i go through it and i have to add in the backslash instead of the forward slash, it says its not operable or it cannot find

says its not recognized.

Justin Horner
Justin Horner
Treehouse Guest Teacher

What step are you on when you get this message about not being recognized?

Open a Command Prompt and type in:

C:>gem which rubygems C:/Ruby21/lib/ruby/2.1.0/rubygems.rb

i get my version whatever

than when i have to use the backslashes..it says not recognized

(step 2)

Justin Horner
Justin Horner
Treehouse Guest Teacher

Okay, instead of using the cmd prompt to open explorer, try launching explorer manually and navigating to the path that the gem which rubygems command provides you.

You should be able to navigate to the rubygems directory manually and then open the ssl_certs directory where you'll paste the .pem file.

now when i go through installing the gems i get an error when i type into cmd prompt

"gem install rails"

it says:

ERROR: While executing gems .. (NoMethodError) undefined method size for nil:NilClass