6、安装brew
<h2>brew 安装</h2>
<p>国内加速可参考 <a href="https://www.jianshu.com/p/22820319f71b">https://www.jianshu.com/p/22820319f71b</a></p>
<p>一键安装</p>
<p><code>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</code></p>
<h2>国内加速</h2>
<h3>清华镜像源</h3>
<p><a href="https://mirror.tuna.tsinghua.edu.cn/help/homebrew/">https://mirror.tuna.tsinghua.edu.cn/help/homebrew/</a>
<a href="https://mirrors.tuna.tsinghua.edu.cn/help/homebrew-bottles/">https://mirrors.tuna.tsinghua.edu.cn/help/homebrew-bottles/</a></p>
<p>临时替换</p>
<pre><code>export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles</code></pre>
<p>永久替换</p>
<pre><code class="language-bash">echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile</code></pre>
<pre><code class="language-bash">$ cd "$(brew --repo)"
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
$ brew update</code></pre>
<pre><code>Last login: Mon Dec 24 16:33:03 on console
acerdeMacBook-Air:~ zcr$ wget
-bash: wget: command not found
acerdeMacBook-Air:~ zcr$ brew
-bash: brew: command not found
acerdeMacBook-Air:~ zcr$ 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/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following existing directories will have their owner set to zcr:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man8
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man8
==> /usr/bin/sudo /usr/sbin/chown zcr /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man8
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man8
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown zcr /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/zcr/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/zcr/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown zcr /Users/zcr/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown zcr /Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS Mojave version 10.14) for Xcode-10.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ Mojave\ version\ 10.14)\ for\ Xcode-10.1
Software Update Tool
Downloading Command Line Tools (macOS Mojave version 10.14) for Xcode
Downloaded Command Line Tools (macOS Mojave version 10.14) for Xcode
Installing Command Line Tools (macOS Mojave version 10.14) for Xcode
Done with Command Line Tools (macOS Mojave version 10.14) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
acerdeMacBook-Air:~ zcr$ 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/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
acerdeMacBook-Air:~ zcr$ ping github.com
PING github.com (52.74.223.119): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
Request timeout for icmp_seq 8
Request timeout for icmp_seq 9
Request timeout for icmp_seq 10
Request timeout for icmp_seq 11
Request timeout for icmp_seq 12
Request timeout for icmp_seq 13
Request timeout for icmp_seq 14
Request timeout for icmp_seq 15
Request timeout for icmp_seq 16
ÇRequest timeout for icmp_seq 17
Request timeout for icmp_seq 18
Request timeout for icmp_seq 19
^C
--- github.com ping statistics ---
21 packets transmitted, 0 packets received, 100.0% packet loss
acerdeMacBook-Air:~ zcr$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (6) Couldn't resolve host 'raw.githubusercontent.com'
acerdeMacBook-Air:~ zcr$ curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24154 100 24154 0 0 15051 0 0:00:01 0:00:01 --:--:-- 17289
Downloading https://github.com/rvm/rvm/archive/1.29.6.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.6/1.29.6.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Installing RVM to /Users/zcr/.rvm/
Adding rvm PATH line to /Users/zcr/.profile /Users/zcr/.mkshrc /Users/zcr/.bashrc /Users/zcr/.zshrc.
Adding rvm loading line to /Users/zcr/.profile /Users/zcr/.bash_profile /Users/zcr/.zlogin.
Installation of RVM in /Users/zcr/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/zcr/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
acerdeMacBook-Air:~ zcr$ curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
Password:
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
acerdeMacBook-Air:~ zcr$ curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
x .github/
x .github/CONTRIBUTING.md
x .github/ISSUE_TEMPLATE.md
x .github/PULL_REQUEST_TEMPLATE.md
x .gitignore
x CODEOFCONDUCT.md
x LICENSE.txt
x Library/
x Library/Homebrew/
x Library/Homebrew/blacklist.rb
x Library/Homebrew/bottles.rb
x Library/Homebrew/build.rb
x Library/Homebrew/build_environment.rb
x Library/Homebrew/build_options.rb
x Library/Homebrew/caveats.rb
x Library/Homebrew/checksum.rb
x Library/Homebrew/cleaner.rb
x Library/Homebrew/cleanup.rb
x Library/Homebrew/cmd/
x Library/Homebrew/cmd/--cellar.rb
x Library/Homebrew/cmd/--prefix.rb
x Library/Homebrew/cmd/--repository.rb
x Library/Homebrew/cmd/command.rb
x Library/Homebrew/cmd/commands.rb
x Library/Homebrew/cmd/config.rb
x Library/Homebrew/cmd/doctor.rb
x Library/Homebrew/cmd/help.rb
x Library/Homebrew/cmd/list.rb
x Library/Homebrew/cmd/postinstall.rb
x Library/Homebrew/cmd/search.rb
x Library/Homebrew/cmd/tap.rb
x Library/Homebrew/cmd/update-report.rb
x Library/Homebrew/cmd/update.sh
x Library/Homebrew/compat.rb
x Library/Homebrew/compat/
x Library/Homebrew/compat/dependency_collector.rb
x Library/Homebrew/compat/download_strategy.rb
x Library/Homebrew/compat/fails_with_llvm.rb
x Library/Homebrew/compat/formula.rb
x Library/Homebrew/compat/formula_specialties.rb
x Library/Homebrew/compat/hardware.rb
x Library/Homebrew/compat/keg.rb
x Library/Homebrew/compat/language/
x Library/Homebrew/compat/language/haskell.rb
x Library/Homebrew/compat/macos.rb
x Library/Homebrew/compat/md5.rb
x Library/Homebrew/compat/pathname.rb
x Library/Homebrew/compat/requirements.rb
x Library/Homebrew/compat/sha1.rb
x Library/Homebrew/compat/tap.rb
x Library/Homebrew/compat/version.rb
x Library/Homebrew/compilers.rb
x Library/Homebrew/config.rb
x Library/Homebrew/cxxstdlib.rb
x Library/Homebrew/debrew.rb
x Library/Homebrew/debrew/
x Library/Homebrew/debrew/irb.rb
x Library/Homebrew/dependable.rb
x Library/Homebrew/dependencies.rb
x Library/Homebrew/dependency.rb
x Library/Homebrew/dependency_collector.rb
x Library/Homebrew/descriptions.rb
x Library/Homebrew/dev-cmd/
x Library/Homebrew/dev-cmd/update-test.rb
x Library/Homebrew/diagnostic.rb
x Library/Homebrew/download_strategy.rb
x Library/Homebrew/exceptions.rb
x Library/Homebrew/extend/
x Library/Homebrew/extend/ARGV.rb
x Library/Homebrew/extend/ENV.rb
x Library/Homebrew/extend/ENV/
x Library/Homebrew/extend/ENV/shared.rb
x Library/Homebrew/extend/ENV/std.rb
x Library/Homebrew/extend/ENV/super.rb
x Library/Homebrew/extend/enumerable.rb
x Library/Homebrew/extend/fileutils.rb
x Library/Homebrew/extend/module.rb
x Library/Homebrew/extend/pathname.rb
x Library/Homebrew/extend/string.rb
x Library/Homebrew/formula.rb
x Library/Homebrew/formula_assertions.rb
x Library/Homebrew/formula_cellar_checks.rb
x Library/Homebrew/formula_installer.rb
x Library/Homebrew/formula_lock.rb
x Library/Homebrew/formula_pin.rb
x Library/Homebrew/formula_renames.rb
x Library/Homebrew/formula_support.rb
x Library/Homebrew/formula_versions.rb
x Library/Homebrew/formulary.rb
x Library/Homebrew/global.rb
x Library/Homebrew/hardware.rb
x Library/Homebrew/hooks/
x Library/Homebrew/hooks/bottles.rb
x Library/Homebrew/install_renamed.rb
x Library/Homebrew/keg.rb
x Library/Homebrew/keg_relocate.rb
x Library/Homebrew/language/
x Library/Homebrew/language/go.rb
x Library/Homebrew/language/haskell.rb
x Library/Homebrew/language/java.rb
x Library/Homebrew/language/python.rb
x Library/Homebrew/ld64_dependency.rb
x Library/Homebrew/metafiles.rb
x Library/Homebrew/migrate_remote.rb
x Library/Homebrew/migrator.rb
x Library/Homebrew/official_taps.rb
x Library/Homebrew/options.rb
x Library/Homebrew/os.rb
x Library/Homebrew/os/
x Library/Homebrew/os/linux/
x Library/Homebrew/os/linux/hardware.rb
x Library/Homebrew/os/mac.rb
x Library/Homebrew/os/mac/
x Library/Homebrew/os/mac/architecture_list.rb
x Library/Homebrew/os/mac/cctools_keg.rb
x Library/Homebrew/os/mac/cctools_mach.rb
x Library/Homebrew/os/mac/hardware.rb
x Library/Homebrew/os/mac/keg.rb
x Library/Homebrew/os/mac/pathname.rb
x Library/Homebrew/os/mac/ruby_keg.rb
x Library/Homebrew/os/mac/ruby_mach.rb
x Library/Homebrew/os/mac/sdk.rb
x Library/Homebrew/os/mac/version.rb
x Library/Homebrew/os/mac/xcode.rb
x Library/Homebrew/os/mac/xquartz.rb
x Library/Homebrew/patch.rb
x Library/Homebrew/pkg_version.rb
x Library/Homebrew/postinstall.rb
x Library/Homebrew/requirement.rb
x Library/Homebrew/requirements.rb
x Library/Homebrew/requirements/
x Library/Homebrew/requirements/apr_requirement.rb
x Library/Homebrew/requirements/cctools_requirement.rb
x Library/Homebrew/requirements/emacs_requirement.rb
x Library/Homebrew/requirements/fortran_requirement.rb
x Library/Homebrew/requirements/java_requirement.rb
x Library/Homebrew/requirements/language_module_requirement.rb
x Library/Homebrew/requirements/maximum_macos_requirement.rb
x Library/Homebrew/requirements/minimum_macos_requirement.rb
x Library/Homebrew/requirements/mpi_requirement.rb
x Library/Homebrew/requirements/osxfuse_requirement.rb
x Library/Homebrew/requirements/python_requirement.rb
x Library/Homebrew/requirements/ruby_requirement.rb
x Library/Homebrew/requirements/tuntap_requirement.rb
x Library/Homebrew/requirements/unsigned_kext_requirement.rb
x Library/Homebrew/requirements/x11_requirement.rb
x Library/Homebrew/resource.rb
x Library/Homebrew/sandbox.rb
x Library/Homebrew/shims/
x Library/Homebrew/shims/scm/
x Library/Homebrew/shims/scm/git
x Library/Homebrew/shims/scm/svn
x Library/Homebrew/software_spec.rb
x Library/Homebrew/tab.rb
x Library/Homebrew/tap.rb
x Library/Homebrew/tap_constants.rb
x Library/Homebrew/tap_migrations.rb
x Library/Homebrew/test.rb
x Library/Homebrew/utils.rb
x Library/Homebrew/utils/
x Library/Homebrew/utils/fork.rb
x Library/Homebrew/utils/git.rb
x Library/Homebrew/utils/inreplace.rb
x Library/Homebrew/utils/json.rb
x Library/Homebrew/utils/popen.rb
x Library/Homebrew/vendor/
x Library/Homebrew/vendor/README.md
x Library/Homebrew/vendor/macho/
x Library/Homebrew/vendor/macho/macho.rb
x Library/Homebrew/vendor/macho/macho/
x Library/Homebrew/vendor/macho/macho/exceptions.rb
x Library/Homebrew/vendor/macho/macho/fat_file.rb
x Library/Homebrew/vendor/macho/macho/headers.rb
x Library/Homebrew/vendor/macho/macho/load_commands.rb
x Library/Homebrew/vendor/macho/macho/macho_file.rb
x Library/Homebrew/vendor/macho/macho/open.rb
x Library/Homebrew/vendor/macho/macho/sections.rb
x Library/Homebrew/vendor/macho/macho/structure.rb
x Library/Homebrew/vendor/macho/macho/tools.rb
x Library/Homebrew/vendor/macho/macho/utils.rb
x Library/Homebrew/vendor/okjson.rb
x Library/Homebrew/version.rb
x Library/brew.rb
x Library/brew.sh
x README.md
x bin/
x bin/brew
x share/
x share/doc/
x share/doc/homebrew/
x share/doc/homebrew/Acceptable-Formulae.md
x share/doc/homebrew/Bottles.md
x share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md
x share/doc/homebrew/Brew-Test-Bot.md
x share/doc/homebrew/C++-Standard-Libraries.md
x share/doc/homebrew/Checksum_Deprecation.md
x share/doc/homebrew/Common-Issues-for-Core-Contributors.md
x share/doc/homebrew/Common-Issues.md
x share/doc/homebrew/Custom-GCC-and-cross-compilers.md
x share/doc/homebrew/External-Commands.md
x share/doc/homebrew/FAQ.md
x share/doc/homebrew/Formula-Cookbook.md
x share/doc/homebrew/Gems,-Eggs-and-Perl-Modules.md
x share/doc/homebrew/Homebrew-and-Python.md
x share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md
x share/doc/homebrew/How-to-Create-and-Maintain-a-Tap.md
x share/doc/homebrew/How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-dependencies.md
x share/doc/homebrew/Installation.md
x share/doc/homebrew/Interesting-Taps-&-Branches.md
x share/doc/homebrew/Kickstarter-Supporters.md
x share/doc/homebrew/Maintainer-Guidelines.md
x share/doc/homebrew/Migrating-A-Formula-To-A-Tap.md
x share/doc/homebrew/New-Maintainer-Checklist.md
x share/doc/homebrew/Python-for-Formula-Authors.md
x share/doc/homebrew/Querying-Brew.md
x share/doc/homebrew/README.md
x share/doc/homebrew/Rename-A-Formula.md
x share/doc/homebrew/Tips-N'-Tricks.md
x share/doc/homebrew/Troubleshooting.md
x share/doc/homebrew/Xcode.md
x share/doc/homebrew/brew-tap.md
x share/doc/homebrew/brew.1.html
acerdeMacBook-Air:~ zcr$ brew
Please run brew update!
acerdeMacBook-Air:~ zcr$ sudo brew install wget
Error: Unknown command: install
acerdeMacBook-Air:~ zcr$ brew update
Error: /usr/local must be writable!
acerdeMacBook-Air:~ zcr$ sudo chown -R zcr /usr/local
acerdeMacBook-Air:~ zcr$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Enumerating objects: 1936, done.
remote: Counting objects: 100% (1936/1936), done.
remote: Compressing objects: 100% (1754/1754), done.
remote: Total 1936 (delta 160), reused 1037 (delta 92), pack-reused 0
Receiving objects: 100% (1936/1936), 2.12 MiB | 913.00 KiB/s, done.
Resolving deltas: 100% (160/160), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
HEAD is now at f050e42 Merge pull request #5430 from Homebrew/dependabot/bundler/Library/Homebrew/vendor/i18n-1.3.0
To restore the stashed changes to /usr/local run:
'cd /usr/local && git stash pop'
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4885, done.
remote: Counting objects: 100% (4885/4885), done.
remote: Compressing objects: 100% (4690/4690), done.
remote: Total 4885 (delta 47), reused 299 (delta 4), pack-reused 0
Receiving objects: 100% (4885/4885), 4.02 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (47/47), done.
Checking out files: 100% (4902/4902), done.
Tapped 2 commands and 4670 formulae (4,927 files, 12.5MB).
==> Migrating /Library/Caches/Homebrew to /Users/zcr/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
==> Migrating cache entries...
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/curlftpfs.rb
bad URI(is not URI?): :pserver:anonymous:@curlftpfs.cvs.sourceforge.net:/cvsroot/curlftpfs
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/id3lib.rb
bad URI(is not URI?): :pserver:anonymous:@id3lib.cvs.sourceforge.net:/cvsroot/id3lib
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/schroedinger.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/ncp.rb
bad URI(is not URI?): :pserver:cvs:@cvs.fefe.de:/cvs
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/mandoc.rb
bad URI(is not URI?): anoncvs@mandoc.bsd.lv:/cvs
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/percona-toolkit.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/libowfat.rb
bad URI(is not URI?): :pserver:cvs:@cvs.fefe.de:/cvs
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/myman.rb
bad URI(is not URI?): :pserver:anonymous:@myman.cvs.sourceforge.net:/cvsroot/myman
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/squid.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/terminator.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Library/Taps/homebrew/homebrew-core/Formula/global.rb
bad URI(is not URI?): :pserver:anonymous:@cvs.savannah.gnu.org:/sources/global
==> Migrating cache entries...
Already up-to-date.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
==> Migrating HOMEBREW_REPOSITORY (please wait)...
Error: /usr/local/Homebrew already exists.
Please remove it manually or uninstall and reinstall Homebrew into a new
location as the migration cannot be done automatically.
acerdeMacBook-Air:~ zcr$ rm -r -f /usr/local/share/doc/homebrew
acerdeMacBook-Air:~ zcr$ brew update
Already up-to-date.
==> Migrating HOMEBREW_REPOSITORY (please wait)...
Error: /usr/local/Homebrew already exists.
Please remove it manually or uninstall and reinstall Homebrew into a new
location as the migration cannot be done automatically.
acerdeMacBook-Air:~ zcr$ rm -r -f /usr/local/Homebrew
acerdeMacBook-Air:~ zcr$ brew update
Already up-to-date.
acerdeMacBook-Air:~ zcr$ sudo brew install wget
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
acerdeMacBook-Air:~ zcr$ brew install wget
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl
==> Installing wget dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bot
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.mojave.bottle.tar.gz
==> Caveats
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.
If you need to have gettext first in your PATH run:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
For compilers to find gettext you may need to set:
export LDFLAGS="-L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/include"
==> Summary
🍺 /usr/local/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB
==> Installing wget dependency: libunistring
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.mojave.
######################################################################## 100.0%
==> Pouring libunistring-0.9.10.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/libunistring/0.9.10: 54 files, 4.4MB
==> Installing wget dependency: libidn2
==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.0.5.mojave.bottle
######################################################################## 100.0%
==> Pouring libidn2-2.0.5.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/libidn2/2.0.5: 68 files, 669KB
==> Installing wget dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2q.mojave.bottl
######################################################################## 100.0%
==> Pouring openssl-1.0.2q.mojave.bottle.tar.gz
==> 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"' >> ~/.bash_profile
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.2q: 1,794 files, 12.1MB
==> Installing wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.20.mojave.bottle.tar
######################################################################## 100.0%
==> Pouring wget-1.20.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/wget/1.20: 50 files, 3.9MB
==> Caveats
==> gettext
gettext is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.
If you need to have gettext first in your PATH run:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
For compilers to find gettext you may need to set:
export LDFLAGS="-L/usr/local/opt/gettext/lib"
export CPPFLAGS="-I/usr/local/opt/gettext/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"' >> ~/.bash_profile
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"
acerdeMacBook-Air:~ zcr$ wget
wget:未指定 URL
用法: wget [选项]... [URL]...
请尝试使用“wget --help”查看更多的选项。
acerdeMacBook-Air:~ zcr$
</code></pre>