`brew upgrade` 挂在 El Capitan 上
`brew upgrade` hangs on El Capitan
我不能 运行 brew upgrade
除非它无限期挂起。我正在使用 El Capitan OS。这是 input/output:
>>$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/science).
==> Updated Formulae
artifactory dovecot node@4 scamper
chromedriver node-build openvpn
==> Deleted Formulae
pdksh
==> Upgrading 10 outdated packages, with result:
gcc 6.2.0, gdbm 1.12, libtiff 4.0.7, openssl 1.0.2j, pkg-config 0.29.1_2, python 2.7.12_2, homebrew/science/r 3.3.2, readline 7.0.1, sqlite 3.15.2, yara 3.5.0_1
==> Upgrading gcc
Warning: Building gcc from source:
The bottle needs the Xcode CLT to be installed.
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-6.2.0/gcc-6.2.0.tar.bz2
Already downloaded: /Users/r8t/Library/Caches/Homebrew/gcc-6.2.0.tar.bz2
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/e9e0e
Already downloaded: /Users/r8t/Library/Caches/Homebrew/gcc--patch-863957f90a934ee8f89707980473769cff47ca0663c3906992da6afb242fb220.patch
==> Patching
==> Applying 6.1.0-jit.patch
patching file gcc/jit/Make-lang.in
==> ../configure --build=x86_64-apple-darwin15.6.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
然后什么都没有。
ctrl + c
退出挂起升级。
- 运行
brew doctor
。它促使我
- 运行
brew cleanup
清理错误的符号链接。那我
- 运行
brew doctor
又提示我
- 安装 xcode CLT 通过
命令
sudo xcode-select --install
。
- 终于
brew update
成功了。
它可能正在下载大文件并且需要很长时间。尝试运行以下操作,以便您可以查看下载进度:
brew update --debug --verbose
添加到@travelingbones 的答案中,当您执行 brew upgrade
时,gcc
的安装会卡住。您可以通过运行此命令
进一步验证
验证问题
brew install gcc
取而代之的是,执行以下操作会加快进程,因为 brew 在 x-code 安装
之后安装 预编译 版本的 gcc
改为这样做
sudo xcode-select --install
brew install gcc
详细模式对我有用:
brew update --verbose
我不能 运行 brew upgrade
除非它无限期挂起。我正在使用 El Capitan OS。这是 input/output:
>>$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/science).
==> Updated Formulae
artifactory dovecot node@4 scamper
chromedriver node-build openvpn
==> Deleted Formulae
pdksh
==> Upgrading 10 outdated packages, with result:
gcc 6.2.0, gdbm 1.12, libtiff 4.0.7, openssl 1.0.2j, pkg-config 0.29.1_2, python 2.7.12_2, homebrew/science/r 3.3.2, readline 7.0.1, sqlite 3.15.2, yara 3.5.0_1
==> Upgrading gcc
Warning: Building gcc from source:
The bottle needs the Xcode CLT to be installed.
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-6.2.0/gcc-6.2.0.tar.bz2
Already downloaded: /Users/r8t/Library/Caches/Homebrew/gcc-6.2.0.tar.bz2
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/e9e0e
Already downloaded: /Users/r8t/Library/Caches/Homebrew/gcc--patch-863957f90a934ee8f89707980473769cff47ca0663c3906992da6afb242fb220.patch
==> Patching
==> Applying 6.1.0-jit.patch
patching file gcc/jit/Make-lang.in
==> ../configure --build=x86_64-apple-darwin15.6.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
然后什么都没有。
ctrl + c
退出挂起升级。- 运行
brew doctor
。它促使我 - 运行
brew cleanup
清理错误的符号链接。那我 - 运行
brew doctor
又提示我 - 安装 xcode CLT 通过
命令
sudo xcode-select --install
。 - 终于
brew update
成功了。
它可能正在下载大文件并且需要很长时间。尝试运行以下操作,以便您可以查看下载进度:
brew update --debug --verbose
添加到@travelingbones 的答案中,当您执行 brew upgrade
时,gcc
的安装会卡住。您可以通过运行此命令
验证问题
brew install gcc
取而代之的是,执行以下操作会加快进程,因为 brew 在 x-code 安装
之后安装 预编译 版本的 gcc改为这样做
sudo xcode-select --install
brew install gcc
详细模式对我有用:
brew update --verbose