Trying to install “brew” on a computer foreign computer I was hung up on this the today. How rather dumb!

How to normally install brew:

$ /usr/bin/ruby -e "$(curl -fsSL"
=> curl: (1) Protocol https not supported or disabled in libcurl

Thought this was going to be easy right, wtf?

So, I had to go here: and
Do a little reading about how curl probably doesn’t have ssl support installed, figure it’s best to reinstall, pick my flavor, and download into ~/src. I put all downloads in a ~/src directory. It makes them easy to find if you ever need.

Then I do this

$ cd ~/src
$ tar -xzf curl-7.21.7-1-osx6-x86.tar.gz
$ cd curl-7.21.7
$ ./configure --with-ssl
$ make
$ make test (optional)
$ sudo make install

Then I got this after running the script again:

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here:
curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.


$ /usr/bin/ruby -e "$(curl -fsSL -k"

Snap, everything works! Wonder if I could have gotten away with the flag from the beginning? At least curl is updated.

Leave a Reply

Your email address will not be published. Required fields are marked *