Skip to content

Instantly share code, notes, and snippets.

@originalhat
Last active March 27, 2022 00:38
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save originalhat/5084433 to your computer and use it in GitHub Desktop.
Save originalhat/5084433 to your computer and use it in GitHub Desktop.
make: *** [install_sw] Error 13, "brew install openssl"

Mo SSL, Mo Problems

Problem

$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin64-x86_64-cc
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1e/share/man MANSUFFIX=ssl
created directory `/usr/local/Cellar/openssl/1.0.1e/lib/engines'
created directory `/usr/local/Cellar/openssl/1.0.1e/lib/pkgconfig'
created directory `/usr/local/Cellar/openssl/1.0.1e/include'
created directory `/usr/local/Cellar/openssl/1.0.1e/include/openssl'
make: *** [install_sw] Error 13

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/pull/17865

Smell What the Logs are Cooking?

$ vi /Users/Devinb/Library/Logs/Homebrew/openssl

Turns out [install_sw] Error 13 was the result of not having write privileges to /usr/local/etc/openssl/.

Get Chown'd

$ sudo chown -R <username>:<group> /usr/local/etc/openssl/

Result Happens

$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/openssl zlib-dynamic shared darwin64-x86_64-cc
==> 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 2.9 minutes
@dimaspriyanto
Copy link

i've got the same problem, thanks that's save my day

@rafaelrinaldi
Copy link

I've repeated the same process but when I do openssl version is still the same version which came with Mountain Lion.

Any ideas?

@chiefy
Copy link

chiefy commented Apr 16, 2013

+1 thanks for the fix

@gaetansenn
Copy link

Thanks dude :)

@freestyler
Copy link

+1 Thanks!

Copy link

ghost commented Aug 12, 2013

How long have people been compiling and linking and yet shit like this keeps happening. Thanks dude.

@daqo
Copy link

daqo commented Sep 5, 2013

Great! you saved my day too!

@BanditsBacon
Copy link

Thanks man

@sankalpk
Copy link

sankalpk commented Jan 9, 2014

Thanks!

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