Mac中安装Apple的包管理工具brew

本文介绍了在Mac上安装Apple的包管理工具Homebrew的详细步骤,包括运行安装命令、确认安装成功以及安装依赖软件wget的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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应用
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值