这篇文章写得很详细
关于的描述
下面是安装时的日志:
Last login: Mon Oct 17 09:56:49 on ttys001
bogon:~ lawson$ /usr/bin/ruby -e "$(curl -fsSL /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/Homebrew
==> The following existing directories will be made group writable:
/usr/local/share/man/man7
==> The following existing directories will have their owner set tolawson:
/usr/local/share/man/man7
==> The following new directories will be created:
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/sbin
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share/man/man7
Password:
==> /usr/bin/sudo /usr/sbin/chown lawson /usr/local/share/man/man7
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod u+rwx share/zsh share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown lawson /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Homebrew /usr/local/Frameworks /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/lawson/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/lawson/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown lawson /Users/lawson/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 3459, done.
remote: Compressing objects: 100% (2445/2445), done.
remote: Total 3459 (delta 1605), reused 2206 (delta 877), pack-reused 0
Receiving objects: 100% (3459/3459), 2.20 MiB | 447.00 KiB/s, done.
Resolving deltas: 100% (1605/1605), done.
From /Homebrew/brew
* [new branch] master -> origin/master
* [new tag] 0.1 -> 0.1
* [new tag] 0.2 -> 0.2
* [new tag] 0.3 -> 0.3
* [new tag] 0.4 -> 0.4
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1
* [new tag] 0.8 -> 0.8
* [new tag] 0.8.1 -> 0.8.1
* [new tag] 0.9 -> 0.9
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
* [new tag] 0.9.5 -> 0.9.5
* [new tag] 0.9.8 -> 0.9.8
* [new tag] 0.9.9 -> 0.9.9
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.0.4 -> 1.0.4
* [new tag] 1.0.5 -> 1.0.5
* [new tag] 1.0.6 -> 1.0.6
* [new tag] 1.0.7 -> 1.0.7
HEAD is now at de880f1 Merge pull request #1298 from tdsmith/no-no-bad-unicode
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
/brew-analytics
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3742, done.
remote: Compressing objects: 100% (3632/3632), done.
remote: Total 3742 (delta 12), reused 305 (delta 1), pack-reused 0
Receiving objects: 100% (3742/3742), 2.99 MiB | 669.00 KiB/s, done.
Resolving deltas: 100% (12/12), done.
Checking connectivity... done.
Tapped 3621 formulae (3,769 files, 9.3M)
==> Cleaning up /Library/Caches/Homebrew...
Removing: /Library/Caches/Homebrew/makedepend-1.0.... (29K)
Removing: /Library/Caches/Homebrew/openssl-1.0.2d_1.... (3.6M)
Removing: /Library/Caches/Homebrew/pkg-config-0..... (220.1K)
Removing: /Library/Caches/Homebrew/readline-6.3.... (741.5K)
Removing: /Library/Caches/Homebrew/scons-2.3.... (489.0K)
Removing: /Library/Caches/Homebrew/sqlite-3.8.10.... (2.0M)
Removing: /Library/Caches/Homebrew/subversion-1.8..... (2.8M)
==> Migrating /Library/Caches/Homebrew to /Users/lawson/Library/Caches/Homebrew.
==> Deleting /Library/Caches/Homebrew...
Warning: Failed to delete /Library/Caches/Homebrew.
Please do so manually.
Already up-to-date.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew.1
Please delete these paths and run `brew update`.
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: /brew-docs
bogon:~ lawson$ /usr/bin/ruby -e "$(curl -fsSL /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/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
HEAD is now at de880f1 Merge pull request #1298 from tdsmith/no-no-bad-unicode
Already up-to-date.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew.1
Please delete these paths and run `brew update`.
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: /brew-docs
bogon:~ lawson$ brew update
Already up-to-date.
bogon:~ lawson$ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
==> Installing dependencies for ffmpeg:sdl, pkg-config, gettext,texi2html, yasm,x264, lame,xvid, libpng,freetype, libogg,libvorbis, libvpx,libffi, pcre,glib, fribidi,fontconfig, pixman,cairo, gobject-introspection,icu4c, harfbuzz,libass, fdk-aac,opus, x265
==> Installing ffmpeg dependency:sdl
==> Downloading /bottles/sdl-1.2..
######################################################################## 100.0%
==> Pouring sdl-1.2..
�� /usr/local/Cellar/sdl/1.2.15: 224 files, 1.5M
==> Installing ffmpeg dependency:pkg-config
==> Downloading /bottles/pkg-config-0.29.1_2.yosemit
######################################################################## 100.0%
==> Pouring pkg-config-0.29.1_2.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/pkg-config
Target /usr/local/bin/pkg-config
is a symlink belonging to pkg-config. You can unlink it:
brew unlink pkg-config
To force the link and overwrite all conflicting files:
brew link --overwrite pkg-config
To list all files that would be deleted:
brew link --overwrite --dry-run pkg-config
Possible conflicting files are:
/usr/local/bin/pkg-config -> /usr/local/Cellar/pkg-config/0.28/bin/pkg-config
/usr/local/share/aclocal/pkg.m4 -> /usr/local/Cellar/pkg-config/0.28/share/aclocal/pkg.m4
/usr/local/share/doc/pkg-config/
/usr/local/share/doc/pkg-config/
/usr/local/share/man/man1/pkg-config.1 -> /usr/local/Cellar/pkg-config/0.28/share/man/man1/pkg-config.1
==> Summary
�� /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.4K
==> Installing ffmpeg dependency:gettext
==> Downloading /bottles/gettext-0.19.8.
######################################################################## 100.0%
==> Pouring gettext-0.19.8.
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides the BSD gettext library and some software gets confused if both are in the library path.
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/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include
==> Summary
�� /usr/local/Cellar/gettext/0.19.8.1: 1,934 files, 17.0M
==> Installing ffmpeg dependency:texi2html
==> Downloading /bottles/texi2html-5.
curl: (7) Failed to connect to port 443: Connection refused
Error: Failed to download resource "texi2html"
Download failed: /bottles/texi2html-5.
Warning: Bottle installation failed: building from source.
==> Using the sandbox
==> Downloading /releases/texi2html/texi2html-5
==> Downloading from /releases//texi2html
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/texi2html/5.0 --mandir=/usr/local/Cel
==> make install
�� /usr/local/Cellar/texi2html/5.0: 279 files, 6.2M, built in 21 minutes 26 seconds
==> Installing ffmpeg dependency:yasm
==> Downloading /bottles/yasm-1.3..
######################################################################## 100.0%
==> Pouring yasm-1.3..
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/vsyasm
Target /usr/local/bin/vsyasm
already exists. You may want to remove it:
rm '/usr/local/bin/vsyasm'
To force the link and overwrite all conflicting files:
brew link --overwrite yasm
To list all files that would be deleted:
brew link --overwrite --dry-run yasm
Possible conflicting files are:
/usr/local/bin/vsyasm
/usr/local/bin/yasm
/usr/local/bin/ytasm
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/libyasm/
/usr/local/include/
/usr/local/include/
/usr/local/share/man/man1/yasm.1
/usr/local/share/man/man7/yasm_arch.7
/usr/local/share/man/man7/yasm_dbgfmts.7
/usr/local/share/man/man7/yasm_objfmts.7
/usr/local/share/man/man7/yasm_parsers.7
/usr/local/lib/
==> Summary
�� /usr/local/Cellar/yasm/1.3.0: 44 files, 3.1M
==> Installing ffmpeg dependency:x264
==> Downloading /bottles/.
######################################################################## 100.0%
==> Pouring
�� /usr/local/Cellar/x264/r2699: 10 files, 3.3M
==> Installing ffmpeg dependency:lame
==> Downloading /bottles/lame-3.99.
######################################################################## 100.0%
==> Pouring lame-3.99..
�� /usr/local/Cellar/lame/3.99.5: 26 files, 2M
==> Installing ffmpeg dependency:xvid
==> Downloading /bottles/xvid-1.3..
######################################################################## 100.0%
==> Pouring xvid-1.3.
�� /usr/local/Cellar/xvid/1.3.4: 9 files, 1.3M
==> Installing ffmpeg dependency:libpng
==> Downloading /bottles/libpng-1.6.
######################################################################## 100.0%
==> Pouring libpng-1.6.
�� /usr/local/Cellar/libpng/1.6.25: 25 files, 1.2M
==> Installing ffmpeg dependency:freetype
==> Downloading /bottles/freetype-2.
######################################################################## 100.0%
==> Pouring freetype-2.
�� /usr/local/Cellar/freetype/2.7: 61 files, 2.4M
==> Installing ffmpeg dependency:libogg
==> Downloading /bottles/libogg-1.3.
######################################################################## 100.0%
==> Pouring libogg-1.3.
�� /usr/local/Cellar/libogg/1.3.2: 96 files, 460.1K
==> Installing ffmpeg dependency:libvorbis
==> Downloading /bottles/libvorbis-1.3.
######################################################################## 100.0%
==> Pouring libvorbis-1.3.
�� /usr/local/Cellar/libvorbis/1.3.5: 158 files, 2.3M
==> Installing ffmpeg dependency:libvpx
==> Downloading /bottles/libvpx-1.6.
######################################################################## 100.0%
==> Pouring libvpx-1.6.
�� /usr/local/Cellar/libvpx/1.6.0: 16 files, 2.2M
==> Installing ffmpeg dependency:libffi
==> Downloading /bottles/libffi-3.0.
######################################################################## 100.0%
==> Pouring libffi-3.0.
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Some formulae require a newer version of libffi.
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/libffi/lib
PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig
==> Summary
�� /usr/local/Cellar/libffi/3.0.13: 15 files, 377.2K
==> Installing ffmpeg dependency:pcre
==> Downloading /bottles/pcre-8.
######################################################################## 100.0%
==> Pouring pcre-8.
�� /usr/local/Cellar/pcre/8.39: 203 files, 5.4M
==> Installing ffmpeg dependency:glib
==> Downloading /bottles/glib-2.50.
######################################################################## 100.0%
==> Pouring glib-2.50.
�� /usr/local/Cellar/glib/2.50.1: 427 files, 22.4M
==> Installing ffmpeg dependency:fribidi
==> Downloading /bottles/fribidi-0.19.7_1.
######################################################################## 100.0%
==> Pouring fribidi-0.19.7_1.
�� /usr/local/Cellar/fribidi/0.19.7_1: 61 files, 381.6K
==> Installing ffmpeg dependency:fontconfig
==> Downloading /bottles/fontconfig-2.12.1_2.yosemit
######################################################################## 100.0%
==> Pouring fontconfig-2.12.1_2.
==> Regenerating font cache, this may take a while
==> /usr/local/Cellar/fontconfig/2.12.1_2/bin/fc-cache -frv
�� /usr/local/Cellar/fontconfig/2.12.1_2: 468 files, 3M
==> Installing ffmpeg dependency:pixman
==> Downloading /bottles/pixman-0.34.
######################################################################## 100.0%
==> Pouring pixman-0.34.
�� /usr/local/Cellar/pixman/0.34.0: 12 files, 1.2M
==> Installing ffmpeg dependency:cairo
==> Downloading /bottles/cairo-1.14.6_1.
######################################################################## 100.0%
==> Pouring cairo-1.14.6_1.
�� /usr/local/Cellar/cairo/1.14.6_1: 118 files, 5.9M
==> Installing ffmpeg dependency:gobject-introspection
==> Downloading /bottles/gobject-introspection-1.50.
######################################################################## 100.0%
==> Pouring gobject-introspection-1.50.
�� /usr/local/Cellar/gobject-introspection/1.50.0: 172 files, 9.6M
==> Installing ffmpeg dependency:icu4c
==> Downloading /bottles/icu4c-57..
######################################################################## 100.0%
==> Pouring icu4c-57.
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides (but nothing else).
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/icu4c/lib
CPPFLAGS: -I/usr/local/opt/icu4c/include
PKG_CONFIG_PATH: /usr/local/opt/icu4c/lib/pkgconfig
==> Summary
�� /usr/local/Cellar/icu4c/57.1: 265 files, 65M
==> Installing ffmpeg dependency:harfbuzz
==> Downloading /bottles/harfbuzz-1.3.
######################################################################## 100.0%
==> Pouring harfbuzz-1.3.
�� /usr/local/Cellar/harfbuzz/1.3.2: 122 files, 4.3M
==> Installing ffmpeg dependency:libass
==> Downloading /bottles/libass-0.13.
######################################################################## 100.0%
==> Pouring libass-0.13.
�� /usr/local/Cellar/libass/0.13.4: 10 files, 512.6K
==> Installing ffmpeg dependency:fdk-aac
==> Downloading /bottles/fdk-aac-0.1.
######################################################################## 100.0%
==> Pouring fdk-aac-0.1..
�� /usr/local/Cellar/fdk-aac/0.1.4: 13 files, 1.8M
==> Installing ffmpeg dependency:opus
==> Downloading /bottles/opus-1.1..
######################################################################## 100.0%
==> Pouring opus-1.1.
�� /usr/local/Cellar/opus/1.1.3: 15 files, 861.7K
==> Installing ffmpeg dependency:x265
==> Downloading /bottles/x265-2.
######################################################################## 100.0%
==> Pouring x265-2.
�� /usr/local/Cellar/x265/2.1: 11 files, 7.7M
Warning: ffmpeg: --with-ffplay was deprecated; using --with-sdl instead!
==> Installing ffmpeg
==> Downloading /releases/ffmpeg-3.1..bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/3.1.4 --enable-shared --enable
==> make install
==> Caveats
The native FFmpeg AAC encoder has been stable since FFmpeg 3.0. If you
were using libvo-aacenc or libaacplus, both of which have been dropped in
FFmpeg 3.0, please consider switching to the native encoder (-c:a aac),
fdk-aac (-c:a libfdk_aac, ffmpeg needs to be installed with the
--with-fdk-aac option), or faac (-c:a libfaac, ffmpeg needs to be
installed with the --with-faac option).
See the announcement
/#removing_external_aac_encoders for details,
and /wiki/Encode/AAC on best practices of encoding
AAC with FFmpeg.
==> Summary
�� /usr/local/Cellar/ffmpeg/3.1.4: 242 files, 54.5M, built in 11 minutes 53 seconds
bogon:~ lawson$