Issue installing packages on a mac

I’m running into some problems trying to install packages on a new Mac with julia 0.5.2. Some packages can be installed fine, but others run into problems. The ones that are problematic all seem to use curl to download something via https. I am behind a firewall and, as far as I can tell, have my https proxy set up correctly. I have tried using two different versions of curl, and get different errors with each.

Using the curl that came preinstalled on my computer,

curl 7.51.0 (x86_64-apple-darwin16.0) libcurl/7.51.0 SecureTransport zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets

I get an error like (I have replaced my actual proxy settings with “myproxy.mydomain:myport”):

julia> Pkg.add("Homebrew")
INFO: Initializing package repository /Users/omalled/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Installing BinDeps v0.5.0
INFO: Installing Compat v0.25.1
INFO: Installing Homebrew v0.5.6
INFO: Installing JSON v0.12.0
INFO: Installing SHA v0.3.2
INFO: Installing URIParser v0.1.8
INFO: Building Homebrew
INFO: Downloading brew...
curl: (7) Unsupported proxy scheme for 'https://myproxy.mydomain:myport'
WARNING: Could not download/extract https://github.com/Homebrew/brew/tarball/master into /Users/omalled/.julia/v0.5/Homebrew/deps/usr!
=============================================================[ ERROR: Homebrew ]==============================================================

LoadError: InitError: failed process: Process(`curl -# -L https://github.com/Homebrew/brew/tarball/master`, ProcessExited(7)) [7]
during initialization of module Homebrew
while loading /Users/omalled/.julia/v0.5/Homebrew/deps/build.jl, in expression starting on line 1

==============================================================================================================================================

Using the curl from MacPorts,

curl 7.54.0 (x86_64-apple-darwin16.4.0) libcurl/7.54.0 OpenSSL/1.0.2k zlib/1.2.11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

I get an error like

julia> Pkg.add("Homebrew")
INFO: Initializing package repository /Users/omalled/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Installing BinDeps v0.5.0
INFO: Installing Compat v0.25.1
INFO: Installing Homebrew v0.5.6
INFO: Installing JSON v0.12.0
INFO: Installing SHA v0.3.2
INFO: Installing URIParser v0.1.8
INFO: Building Homebrew
INFO: Downloading brew...

curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
WARNING: Could not download/extract https://github.com/Homebrew/brew/tarball/master into /Users/omalled/.julia/v0.5/Homebrew/deps/usr!
===========================================================================================[ ERROR: Homebrew ]============================================================================================

LoadError: InitError: failed process: Process(`curl -# -L https://github.com/Homebrew/brew/tarball/master`, ProcessExited(35)) [35]
during initialization of module Homebrew
while loading /Users/omalled/.julia/v0.5/Homebrew/deps/build.jl, in expression starting on line 1

==========================================================================================================================================================================================================

I am having problems installing HDF5, Rmath, PyCall, Homebrew, and Blosc – all apparently due to this problem. Does anyone have any suggestions? Any help would be much appreciated.

Maybe try running curl -# -L https://github.com/Homebrew/brew/tarball/master in Terminal?

Running it from a terminal gives the same errors as above (depending on which curl version I use).