Mo SSL, Mo Problems
mac重装后,更新到10.11.安装python3的时候,发现一直在报错,于是乎就通过google搜索了下,完美解决问题。
下文引用来源:点此地址
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