尝试brew install geckodriver
时出现此错误
==> Installing geckodriver dependency: rust
==> Downloading https://static.rust-lang.org/dist/rustc-1.42.0-src.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/rust/1.42.0 --release-channel=stable
==> make
Last 15 lines from /Users/nilshaus/Library/Logs/Homebrew/rust/02.make:
2020-04-12 21:13:48 -0400
make
make: error: unable to find utility "make", not a developer tool or in PATH
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk" cannot be located.
clang: error: unable to find utility "clang", not a developer tool or in PATH
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Rust dependents that currently fail to build from source https://github.com/Homebrew/homebrew-core/issues/50815
Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
很显然,Homebrew不再支持10.11。它找不到make
的事实很奇怪,但是我敢打赌,真正的问题是rust build需要10.12命令行工具。我有办法在OS X 10.11上安装它们吗?我有Xcode 8。
答案 0 :(得分:0)
当 @ViewChild('stepper') stepper: MatHorizontalStepper;
安装新版本的 clang 和 tcl-tk 时,我遇到了同样的错误消息。在此处找到了解决方法:
Xcode 覆盖了命令行工具安装。搬家后 Xcode 到废纸篓我找到了命令行工具的目录 安装:
clang --version
brew upgrade
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
https://github.com/pytorch/pytorch/issues/1139#issuecomment-302967251
另一种可能的解决方法 - 不要移动 Xcode,而是选择以下选项之一来指定 CLT 版本:
/Library/Developer/CommandLineTools/usr/bin
sudo xcode-select -s /Library/Developer/CommandLineTools
显示当前 CLT 路径:sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
https://github.com/pytorch/pytorch/issues/1139#issuecomment-303033942