DL is deprecated, please use Fiddle
Fetching gem metadata from ............
Fetching additional metadata from
Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/rake-
10.4.2.gem)
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
I have the same issue and i have solved it by upgrading to latest version,
Download latest rubygems package from rubygems
Unpack at your specific path like D:\Ruby\RubyGems.
Bring up your command line by following this Win + R, cmd , Enter
Go to the directly where you unpacked rubygems package to: cd D:\Ruby\RubyGems
Run ruby setup.rb
Let me know if it solve your problem.
Related
I am trying to install gem scss-lint and get the following message error:
gem install scss_lint
ERROR: Could not find a valid gem 'scss_lint' (>= 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)
I have tryed the following command
gem source -a https://rubygems.org/ following an issue reported on their GitHub but I still have another error message:
YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0).
(I am working on MAC OSX if this may help)
Any idea ?
This is a known issue. Take a look at these links for more info: https://gist.github.com/luislavena/f064211759ee0f806c88
https://github.com/rubygems/rubygems/issues/1050
Short term workaround is using this source: 'http://rubygems.org'
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/
I am trying to install a migration tool called move to go for a CRM system called Lime but I get an error. I dont know why, the certificate says it's valid in the SSL.
This is the step by step guide that I am executing:
https://github.com/Lundalogik/move-to-go/blob/master/step-by-step.md
and this is the documentation:
https://github.com/Lundalogik/move-to-go
C:\Users\gujo>gem install move-to-go
ERROR: Could not find a valid gem 'move-to-go' (>= 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/latest_specs.4.8.gz)
Any suggestions?
This is due to Ruby SSL certificate that has changed.
You can install a newer version of RubyGem to fix the issue.
Example, on Windows:
Download https://rubygems.org/downloads/rubygems-update-2.6.7.gem and save it to C:\rubygems-update-2.6.7.gem
Open a command prompt and run the commands :
gem install --local C:\rubygems-update-2.6.7.gem
update_rubygems --no-ri --no-rdoc
gem --version and check it is 2.6.7
gem uninstall rubygems-update -x to remove the update package
Finally, retry your gem install command and the SSL error should be gone !
Source: http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages
Not able to add any gem sources thus can't do gem install. See command output
Adding using https://rubygems.org failed, see output
C:\>gem sources -a https://rubygems.org
Error fetching 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)
Adding using http://rubygems.org failed, see output
C:\>gem sources -a http://rubygems.org
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn] y
Error fetching http://rubygems.org:
server did not return a valid file
(http://api.rubygems.org /specs.4.8.gz)
No Sources In System, See Command Output
C:>gem sources
* CURRENT SOURCES *
gem 2.5.1 got installed due to MSI installer of ruby 2.3.1p112 on windows 10 x64 so we need to exclusively update gem version by gem install rubygems-update thereafter update_rubygems. This is available here
Im on OSX 10.10.5 and using RVM and ruby version 2.3.1. When i run gem install <gem_name> i get the following error
Unable to download data from https://rubygems.org/ - SSL_connect
returned=1 errno=0 state=error: certificate verify failed
(https://api.rubygems.org/specs.4.8.gz)
I tried with different versions of ruby but still get the same error. When i run the following command
rvm osx-ssl-certs status all
I get:
Certificates for /etc/openssl/cert.pem: Up to date.
Certificates for /usr/local/etc/openssl/cert.pem: Up to date.
I have done rvm osx-ssl-certs update all again but still the error persists. Also trying to do gem update --system gives the same error.
The output of ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION' is "OpenSSL 1.0.2h 3 May 2016"
Any way to fix this ?
Thank You
I had this same problem, the only way it work for me is to download the most updated rubygem from official website, then running the following command:
Download gem from rubygems
Unpack rubygem zip file into any directory
cd into the unpacked rubygem folder
Install with: ruby setup.rb (you may need admin/root privilege)
Enter sudo gem update --system (to test you have most updated rubygem)
...After last step, it responded with Latest version currently installed. Aborting yay! Hope this helps :)