Mac中安装brewd的命令步骤
1、首先/usr/local/文件要没有什么东西
2、一条命令安装:
http://brew.sh/ 中的一条语句如下:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Library/...
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /Users/znt/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/znt/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown znt /Users/znt/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 1036, done.
remote: Compressing objects: 100% (926/926), done.
remote: Total 1036 (delta 93), reused 646 (delta 68), pack-reused 0
Receiving objects: 100% (1036/1036), 1.04 MiB | 331.00 KiB/s, done.
Resolving deltas: 100% (93/93), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
HEAD is now at efd29eb Merge pull request #878 from mistydemeo/fix_shell_profile
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3720, done.
remote: Compressing objects: 100% (3607/3607), done.
remote: Total 3720 (delta 15), reused 1673 (delta 4), pack-reused 0
Receiving objects: 100% (3720/3720), 2.88 MiB | 492.00 KiB/s, done.
Resolving deltas: 100% (15/15), done.
Checking connectivity... done.
Tapped 3598 formulae (3,747 files, 9.0M)
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
https://git.io/brew-analytics
bogon:local znt$ brew -v
Homebrew 0.9.9 (git revision efd2; last commit 2016-09-05)
Homebrew/homebrew-core (git revision 4219; last commit 2016-09-05)
bogon:local znt$ brew install wget
==> Installing dependencies for wget:openssl
==> Installing wget dependency:openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==> Using the sandbox
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
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.2h_1: 1,691 files, 12M
==> Installingwget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.18.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wget-1.18.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/wget/1.18: 9 files, 1.6M
到此brew包管理工具安装成功,版本0.9.9,并安装了一个wget应用