Decision
I used Bruno's post to find a solution, but I think it needs to be made more specific, so this is clearly what I did.
- I downloaded cacert.pem into my ~ / .ssh directory (I don’t know if I need to do this, but I saw someone doing something similar trying to find a solution, so that’s what I said).
- Set env var to CURL_CA_BUNDLE to install. Actually, this is decision No. 4 from the site proposed by the refusal. I just misunderstood what they were saying (a simple example may have saved me from confusion). In any case, you need to specify the full path to the .pem file, then you can set it as AND then it will be installed!
$ CURL_CA_BUNDLE=~/.ssh/cacert.pem ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Original question
Like me either
- install homebrew or
- install curl with SSL so I can install homebrew?
I am on a Mac OSX Leopard.
I try to install homebrew , but I get the following error:
$ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/bin
/usr/local/lib
/usr/local/lib/pkgconfig
/usr/local/share/man/man1
/usr/local/share/man/man3
Press enter to continue
==> /usr/bin/sudo /bin/chmod g+w /usr/local/bin /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share/man/man1 /usr/local/share/man/man3
==> Downloading and Installing Homebrew...
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: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). The default
bundle is named curl-ca-bundle.crt; 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 verification of the certificate, use
the -k (or --insecure) option.
gzip: stdin: unexpected end of file
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error exit delayed from previous errors
Failed during: /bin/bash -o pipefail -c '/usr/bin/curl -sSfL https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'
I tried to set curl with macports and specifying + ssl, but that didn’t work (sorry, I don’t remember what the error is, and it took about an hour to get to this point, so I don’t want to do it again). I remove the curl from macports and then run $ whereis curlthat does not find anything.
Therefore, I go to the site suggested in the error message above. Most options are not suitable, but option 5 makes sense:
// CA! - , Firefox "make ca-bundle" curl
, curl source code $ ./buildconf, $ ./configure, $ make, $ make ca-bundle , , $ sudo make install. $ whereis curl, "/usr/bin/curl".
homebrew ( ), , .