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.