无法在OSX 10.12上升级ffmpeg或生锈

问题描述

尝试在OSX 10.12 Sierra上运行brew upgrade ffmpeg,但是在安装rust时出现以下错误

make: error: unable to find utility "make",not a developer tool or in PATH
xcodebuild: error: SDK "/Library/Developer/CommandLinetools/SDKs/MacOSX10.13.sdk" cannot be located.
clang: error: unable to find utility "clang",not a developer tool or in PATH

但是which make给出/usr/bin/makexcrun make被识别,并且
ls -l /Library/Developer/CommandLinetools/SDKs/MacOSX10.13.sdk给出了
lrwxr-xr-x 1 root wheel 10 Dec 21 2017 /Library/Developer/CommandLinetools/SDKs/MacOSX10.13.sdk -> MacOSX.sdk

如何强制rust安装使用/usr/bin/make而不是XTools安装?还是其他的东西。

编辑

我有rustc 1.46.0,这是Homebrew想要的./configure --prefix=/usr/local/Cellar/rust/1.46.0 --release-channel=stable

解决方法

编辑Homebrew公式
brew edit rust
并注释该行
ENV["SDKROOT"] = MacOS.sdk_path
然后可以安装Rust(它很长)。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...