cannot be built with any available compilers"-6ren"> cannot be built with any available compilers"-例如,我尝试运行 brew Upgrade ruby​​-build。 失败并出现错误: CompilerSelectionError: ruby-build cannot be built with-6ren">
gpt4 book ai didi

ruby-on-rails - `brew upgrade ` : " cannot be built with any available compilers"

转载 作者:行者123 更新时间:2023-12-03 01:52:57 35 4
gpt4 key购买 nike

例如,我尝试运行 brew Upgrade ruby​​-build

失败并出现错误:

CompilerSelectionError: ruby-build cannot be built with any available compilers.
Install GNU's GCC
brew install gcc

当我运行 brew install gcc 时,我得到:

Warning: Building gcc from source:
The bottle needs the Xcode CLT to be installed.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
CompilerSelectionError: gcc cannot be built with any available compilers.
Install GNU's GCC
brew install gcc

如何通过 brew 升级 ruby-build

最佳答案

我运行了这个命令,它现在可以工作了:

xcode-select --install

关于ruby-on-rails - `brew upgrade <package>` : "<package> cannot be built with any available compilers",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54579315/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com