ruby could not find valid gem - ruby

I have been trying to develop a Ruby on Rails app but cannot. I have unistalled and reinstalled and it keeps saying cert not found even though I can see the cert on my computer.
C:\DevKit>gem install json --platform=ruby
ERROR: Could not find a valid gem 'json' (>= 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://api.rubygems.org/specs.4.8.gz)
C:\DevKit>gem install json -- platform=ruby2.2
ERROR: Could not find a valid gem 'json' (>= 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://api.rubygems.org/specs.4.8.gz)
C:\>update_rubygems --no-ri --no-rdoc
RubyGems 2.3.0 installed
RubyGems installed the following executables:
C:/Ruby22/bin/gem
C:\>cd devkit
C:\DevKit>cd assignment_10
C:\DevKit\Assignment_10>cd C:\DevKit\Assignment_10
C:\DevKit\Assignment_10>cd ..
C:\DevKit>gem install json --platform=ruby
ERROR: Could not find a valid gem 'json' (>= 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://api.rubygems.org/specs.4.8.gz)
C:\DevKit>gem install bson_ext --platform=ruby
ERROR: Could not find a valid gem 'bson_ext' (>= 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://api.rubygems.org/specs.4.8.gz)
C:\DevKit>
Thanks for any help you can provide.

You could try to just get it from http://rubygems.org/

If you want to use Rails on windows, I suggest you to look at this installer which is pretty great : RailsInstaller

Related

error when trying to install ruby gem gosu

Unable to install gosu ruby gem. When I try to run
gem install gosu
it throws this error:
Could not find a valid gem 'gosu' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3
read server hello A: tlsv1 alert protocol version
(https://rubygems.org/latest_specs.4.8.gz)
How can I install this gem?

gem install sass error

I am trying to install sass and I tried ruby installer. I am getting the error as follow.Please anyone help.
C:\Ruby23-x64>gem install sass
ERROR: Could not find a valid gem 'sass' (>= 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://api.rubygems.org/specs.4.8.gz)
gem install by default uses https://rubygems.org/ as it's source for gems, but you can specify the source using --source option and give a non-SSL source to install like following:
gem install sass --source http://rubygems.org/

Cannot install cucumber

I have installed Ruby by way of the command prompt. Verified that I had the most updated version. I am now trying to install cucumber. Right on the cucumber site, it says to simply use the prompt gem install cucumber to get it to install. Gem fails to make the call to cucumber with these result on the command prompt:
ERROR: Could not find a valid gem 'cucumber' (>= 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://api.rubygems.org/specs.4.8.gz)

rubygem install SSL error [duplicate]

This question already has answers here:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
(37 answers)
Closed 8 years ago.
Anytime I try to install any gem of late I get this kind of error message for example:
could not find a valid gem 'bundler' (>= 0), here is why: unable to
download data from https://rubygems.org/ - SSl_connects returned=1
eerno=0 state=SSLv3 read server certificate B: certificate verify
failed (https://api.rubygems.org/latest_specs.4.8.gz)
I don't know what to do.
This ticket contains several solutions. You may want to
Try to upgrade your local RubyGems setup
$ gem update --system
If you use RVM, upgrade RVM and upgrade the certificates.
Here's a debugging tool.

ruby bundler openssl error

i have bundle 1.3.0, rubygems 2.00, ruby 1.9.3p392 with rvm 1.18.15 on a debian squeeze machine
when doing bundle install with the following sources in the Gemfile:
source 'https://rubygems.org'
source 'https://ourgemserver.ourcompany.com'
I get
.../.rvm/gems/ruby-1.9.3-p392#global/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb:70:in 'connect':
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
while gem install <one of the gems in gemfile> works without any problems
I have tried putting the certificate from http://curl.haxx.se/ca/cacert.pem into .rvm/usr/ssl/cert.pem without any effect.
also, bundler doesn't seem to honor :ssl_verify_mode: 0 in the user home's .gemrc
any further hints?
On OS X 10.7.5, I solved the same error by updating openssl and adding the following to .bash_profile:
export SSL_CERT_FILE=/path/to/ca-bundle.crt

Resources