brew install thrift

➜ ~ brew install thrift
Updating Homebrew...
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this old version.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Installing dependencies for thrift: icu4c, boost and openssl
==> Installing thrift dependency: icu4c
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Downloading https://ssl.icu-project.org/files/icu4c/64.2/icu4c-64_2-src.tgz
########### 15.8%
curl: (18) transfer closed with 20228546 bytes remaining to read
Trying a mirror...
==> Downloading https://github.com/unicode-org/icu/releases/download/release-64-
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws
################ 23.3%
curl: (56) SSLRead() return error -9806
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "icu4c"
Download failed: https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-src.tgz

➜ ~ home brew install thrift
zsh: command not found: home
➜ ~ brew install thrift
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
whalebrew
==> Updated Formulae
atlantis exploitdb kube-aws operator-sdk
bazel fio kustomize pulumi
bundletool gatsby-cli kvazaar radare2
circleci ghex landscaper redex
dbus golang-migrate lgogdownloader sysdig
di helmfile libjson-rpc-cpp ttyd
dita-ot hqx libtensorflow ucloud
doctl i386-elf-gcc lxc ungit
dynamips i386-elf-gdb minio-mc zabbix
eprover i386-elf-grub nss znc
erlang@21 jsoncpp openhmd

Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this old version.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Installing dependencies for thrift: icu4c, boost and openssl
==> Installing thrift dependency: icu4c
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Downloading https://ssl.icu-project.org/files/icu4c/64.2/icu4c-64_2-src.tgz
######################################################################## 100.0%
curl: (28) Operation timed out after 0 milliseconds with 0 out of 0 bytes received
Trying a mirror...
==> Downloading https://github.com/unicode-org/icu/releases/download/release-64-
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws

curl: (28) Connection timed out after 5004 milliseconds
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "icu4c"
Download failed: https://github.com/unicode-org/icu/releases/download/release-64-2/icu4c-64_2-src.tgz

➜ ~ brew install thrift
Updating Homebrew...
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this old version.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Installing dependencies for thrift: icu4c, boost and openssl
==> Installing thrift dependency: icu4c
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Downloading https://ssl.icu-project.org/files/icu4c/64.2/icu4c-64_2-src.tgz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/icu4c/64.2 --disable-samples --disabl
==> make
==> make install
==> Caveats
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"

==> Summary
🍺 /usr/local/Cellar/icu4c/64.2: 257 files, 69.6MB, built in 24 minutes 35 seconds
==> Installing thrift dependency: boost
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Downloading https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/430ae8354789de4fd19ee
######################################################################## 100.0%
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.70.0 --libdir=/usr/local/C
==> ./b2 headers
==> ./b2 --prefix=/usr/local/Cellar/boost/1.70.0 --libdir=/usr/local/Cellar/boos
^[OP🍺 /usr/local/Cellar/boost/1.70.0: 13,981 files, 507.7MB, built in 28 minutes 8 seconds
==> Installing thrift dependency: openssl
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

==> Downloading https://www.openssl.org/source/openssl-1.0.2s.tar.gz
######################################################################## 100.0%
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2s --openssldir=/usr
==> make depend
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.2s/share/man MANSUFFIX=ssl
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs

and run
/usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

==> Summary
🍺 /usr/local/Cellar/openssl/1.0.2s: 1,787 files, 12.2MB, built in 9 minutes 56 seconds
==> Installing thrift
==> Downloading https://www.apache.org/dyn/closer.cgi?path=/thrift/0.12.0/thrift
==> Downloading from http://mirrors.tuna.tsinghua.edu.cn/apache/thrift/0.12.0/th
######################################################################## 100.0%
==> ./configure --disable-tests --prefix=/usr/local/Cellar/thrift/0.12.0 --libdi
==> make
==> make install
🍺 /usr/local/Cellar/thrift/0.12.0: 102 files, 7.2MB, built in 3 minutes 44 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/icu4c/61.1... (249 files, 67.3MB)
Removing: /usr/local/Cellar/openssl/1.0.2j... (1,695 files, 12MB)
Removing: /Users/exmyth/Library/Caches/Homebrew/java_cache... (286B)
Pruned 0 symbolic links and 2 directories from /usr/local
==> Caveats
==> icu4c
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"

==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs

and run
/usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

➜ ~
➜ ~
➜ ~ which thrift
/usr/local/bin/thrift

posted @ 2019-07-14 11:23  牧之丨  阅读(3688)  评论(0编辑  收藏  举报