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 get the error message "Could not find a valid gem 'bundler' <>= 0> in any repository" How can I fix this issue?

I'm trying to install the gems but I get the message: "Could not find a valid gem 'bundler' <>= 0> in any repository" How can I fix this issue?

5 Answers

You are probably behind a proxy or have problems with internet connection. Can you pls check with your windows settings is your terminal or VM allowed to access the Internet?

I am behind a proxy at my University, let me get back home and try that out first.

Thank you for your response

You are behind a firewall or virus software. You need to switch to use http://rubygems.org instead of https://rubygems.org. You can use the gem sources -r https://rubygems.org then -a http://rubygems.org it will remove the https and add just the http if you are having this issue you will have to change it in your Gemfile of your test app as well or your server won't run.

Thank you Michael. I'm working on a 64-bit Windows Professional machine and, at least for me, this worked. For the cmd line newbies: gem sources -r https://rubygems.org -a http://rubygems.org

Ok on Windows 8.1 i had this problem. I've tried everything i found on the internet taking this as a starting point. In the end the best result (and simpliest one) is to change source adress to http instead of https by typing

gem sources -a http://rubygems.org

to command line. It will ask if you're sure to change adress just type y and you're done.

pff

I did this after reading the SSL certification fix which was kind of complicated. So far, the solution above seems to be a much easier fix.

Nikolay, I am having the same problem but am not behind a proxy, and don't seem to have any internet connection problems. I also checked my Windows Firewall in case that could be an issue.

Any other suggestions?

Thanks in advance!

What do you see after "here is why:" line?

Hi Nikolay, I had the same problem today.

Here is what I get when I type "gem install bundler"

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)

Any suggestion?

Best regards.

I can only add to Michael answer that it also could be due to outdated ssl files. Pls check this for more detail information about the issue