gpt4 book ai didi

macos - 在 OSX 10.12 上升级 ffmpeg(或 rust)找不到 make

转载 作者:行者123 更新时间:2023-12-04 23:12:09 30 4
gpt4 key购买 nike

正在尝试 brew upgrade ffmpeg在 OSX 10.12 Sierra 上,但当它到达安装 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.sdklrwxr-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(它很长)。

关于macos - 在 OSX 10.12 上升级 ffmpeg(或 rust)找不到 make,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63999939/

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