I'm unable to install curb on my Mac. When I enter
gem install curb
I get this error
ERROR: Could not find a valid gem 'curb' (>= 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 looked at a similar question with a similar error message reported ("Unable to download data from https://rubygems.org/") and tried the suggested solution, but it seems I don't have rvm. I'm also not sure if the origin of these two issues is the same.
What am I missing?
UPDATE:
I did some more digging and suspect it's my version of OpenSSL (I have OpenSSL 0.9.8zh 14 Jan 2016) that I seem not to be able to update any further. I'm on macOS 10.11.6 (El Capitan).
So I tried a less secure option with
$ sudo gem sources -a http://rubygems.org
Password:
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn] y
http://rubygems.org added to sources
After that I tried above command again
$ sudo gem install curb
Fetching: curb-0.9.11.gem (100%)
Building native extensions. This could take a while...
Successfully installed curb-0.9.11
Parsing documentation for curb-0.9.11
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_core.bundle, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_easy.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_errors.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_multi.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_postfield.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/curb_upload.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/curb_core.bundle, skipping
Installing ri documentation for curb-0.9.11
WARNING: Unable to pull 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)
1 gem installed
Just not sure if the last error message now means the install was incomplete or not.
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'
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?
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
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.