“酿造升级”挂在El Capitan上

时间:2016-12-08 01:43:26

标签: homebrew osx-elcapitan

我无法在没有无限期悬挂的情况下运行brew upgrade。我正在使用El Capitan OS。这是输入/输出:

>>$ 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

然后什么都没有。

5 个答案:

答案 0 :(得分:16)

  • ctrl + c退出挂起升级。
  • 运行brew doctor。它促使我
  • 运行brew prune以清除虚拟simlink。然后我
  • 再次运行brew doctor并提示我
  • 通过安装xcode CLT 命令sudo xcode-select --install
  • 最后brew update 工作

答案 1 :(得分:16)

它可能会下载大量的东西,需要很长时间。尝试运行以下内容,以便查看下载进度:

brew update --debug --verbose

答案 2 :(得分:1)

要添加@travelingbones的答案,当您执行gcc时,brew upgrade的安装会卡住。您可以通过运行此命令进一步验证它

问题验证

brew install gcc

而不是这样,执行以下操作,加快了流程,因为brew在安装x代码后安装预编译版本的gcc

执行此操作

sudo xcode-select --install
brew install gcc

答案 3 :(得分:0)

brew抱怨“警告:您正在使用macOS 10.13。我们不提供此预发行版本的支持。”

警告:您正在使用macOS 10.13。 我们不支持此预发行版本。 您可能会遇到构建失败或其他损坏。 请创建请求请求,而不要提交问题。 错误:未定义的局部变量或方法ruby_version' for #<Homebrew::Diagnostic::Checks:0x00007fd79c939b78> /usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:202:in check_ruby_version' /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:43:inblock in doctor' /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:35:in中的每个 /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:35:in doctor' /usr/local/Homebrew/Library/Homebrew/brew.rb:91:in'

答案 4 :(得分:0)

详细模式对我有用:

brew update --verbose