我要安装下面的开源项目:
https://github.com/wernerturing/multi-delogo
https://github.com/wernerturing/homebrew-multi-delogo
但是在安装的时候报错了
brew install multi-delogo
报错如下:
==> Cloning https://github.com/wernerturing/multi-delogo.git
Updating /Users/ponponon/Library/Caches/Homebrew/multi-delogo--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 7b33d3c Minor code changes in the interaction between C and C++
==> Installing multi-delogo from wernerturing/multi-delogo
Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Settings.
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 16.0.
意思是说我本地的编译环境太老了
我看了一下,在 /Library/Developer/CommandLineTools 下面最新的 clang 是 15
╰─➤ /usr/bin/clang --version 1 ↵
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
15 是 2022年发布的,最新的已经是 17 了
https://clang.llvm.org/cxx_status.html
所以怎么升级到 17 呢?我不知道
但是 brew 的输出给了我一些提示:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
抱着试试看的心情,试了一下,可以成功
╰─➤ clang --version
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。