Xcpretty Terminal Issues
-
Hi guys, I've been trying to get xcpretty installed on a mac using terminal and I get the following error:
ERROR: Could not find a valid gem 'xcpretty.' (>= 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'm a complete newbie and have been trying to get around this for the last 3 hours
To be clear I have tried:
gem install xcpretty
and
sudo gem install xcprettyI've also tried to completely remove my admin password but the error persists.
Any thoughts or help appreciated guys.
Thanks,
Lee
-
@LeeC sudo gem install xcpretty worked on my mac. Maybe you should try to find some other way to install it. Looks like an ssl error.
Maybe compiling from github source? Just a thought. Never tried
-
@hisefilo Thanks for feeding back.
Just out of curiosity, what version of OSX did it work for you on?I'm currenty, using Sierra 10.12.3
Thanks
-
@LeeC El Capitan señor
-
@LeeC I did the install on iMac and macbook pro, both with high sierra, it worked fine
-
Thanks for the response guys.
Ok, I'm not sure if this is best practice but I did the following to get xcpretty installed:
$ gem sources --add http://rubygems.org/
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 sourcesVery strange that I couldn't install it using the secure https....
Anyway, thanks again!
-
@LeeC ssl protocol changed a few weeks ago. Now it requires some kind of I don't know what, but my webmaster did that on my site. Maybe this is the reason.