Curl errors preventing installs on Mac Sierra


(beforeisleep) #1

Example below. It seems that https download always fails with “Server aborted the SSL handshake” error, and subsequent unsafe download fails with “Empty reply from server”.

Anyone see this issues? Any advise would be much appreciated.

% brew install opencv

==> Installing opencv from homebrew/science
==> Installing dependencies for homebrew/science/opencv: jpeg, libpng, libtiff, eigen, numpy
==> Installing homebrew/science/opencv dependency: jpeg
==> Downloading […]

curl: (35) Server aborted the SSL handshake
Error: Failed to download resource "jpeg"
Download failed: […]
Warning: Bottle installation failed: building from source.
==> Downloading […]

curl: (52) Empty reply from server
Error: Failed to download resource "jpeg"
Download failed: […]


#2

Are you behind any proxy? If so, you need to configure curl to use that proxy.

This answer explains how to do that.


(beforeisleep) #3

No I do not. I do use VPN; so I tried it with it off, but no difference.


(beforeisleep) #4

It looks like there was a problem with my DNS configuration. Fixing that resolved that issue. Thanks for the help.