Mo SSL, Mo Problems
mac重裝后,更新到10.11.安裝python3的時候,發(fā)現(xiàn)一直在報錯,于是乎就通過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