Skip to content

Instantly share code, notes, and snippets.

@originalhat
Last active December 14, 2015 10:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save originalhat/5073115 to your computer and use it in GitHub Desktop.
Save originalhat/5073115 to your computer and use it in GitHub Desktop.
FIX: Error: Download failed: http://openssl.org/source/openssl...

Gimmie teh R00by

$ rvm install ruby-2.0.0 

WTF!

...
requirements_brew_generate_openssl_cert:4: no such file or directory: /usr/local/Cellar/openssl/1.0.1e/bin/openssl
requirements_brew_generate_openssl_cert:6: permission denied: /cert.pem
requirements_brew_generate_openssl_cert:7: permission denied: /cert.pem
requirements_brew_generate_openssl_cert:8: no such file or directory: /usr/local/Cellar/openssl/1.0.1e/bin/c_rehash
$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
                                                                           0.0%
curl: (7) couldn't connect to host
Error: Download failed: http://openssl.org/source/openssl-1.0.1e.tar.gz

OIC

Hater. Let me get it from somewhere that exists.

$ brew edit openssl

Change url to mirror site (that actually works).

require 'formula'

  class Openssl < Formula
  homepage 'http://openssl.org'
  url 'http://mirrors.ibiblio.org/openssl/source/openssl-1.0.1e.tar.gz'
  ...

HAS GREAT SUCCESS!

$ brew install openssl
==> Downloading http://mirrors.ibiblio.org/openssl/source/openssl-1.0.1e.tar.gz
######################################################################## 100.0%
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin64-x86_64-
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1e/share/man MANSUFFIX=ssl
==> Caveats
To install updated CA certs from Mozilla.org:

    brew install curl-ca-bundle

This formula is keg-only: so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

The OpenSSL provided by OS X is too old for some software.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.1e: 429 files, 15M, built in 3.7 minutes

And OF COURSE, rvm install ruby-2.0.0 be working like a charm. ;)

@garbles
Copy link

garbles commented Dec 21, 2013

👏😁 Thanks, brah! Worked like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment