gemp
gemp

Reputation: 139

Upgrade ffmpeg (or rust) on OSX 10.12 cannot find make

Trying to brew upgrade ffmpeg on OSX 10.12 Sierra but when it arrived to install rust I had the following error:

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

But which make gives /usr/bin/make and xcrun make is recognized and
ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk gives
lrwxr-xr-x 1 root wheel 10 Dec 21 2017 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -> MacOSX.sdk

How can I force the rust install to use /usr/bin/make instead of the XTools one? Or something else.

EDIT

I have rustc 1.46.0 which is the dependency that Homebrew wants ./configure --prefix=/usr/local/Cellar/rust/1.46.0 --release-channel=stable

Upvotes: 0

Views: 2175

Answers (1)

gemp
gemp

Reputation: 139

Edit the Homebrew formulae

brew edit rust

and comment the line

ENV["SDKROOT"] = MacOS.sdk_path 

then Rust can be installed (it's quite long).

Upvotes: 1

Related Questions