首页 > 解决方案 > 在旧 Mac 上升级到最新版本的 Cmake?

问题描述

是否可以在较旧的 macos 上升级到最新版本的 Cmake?我在 mac os v10.11 EL Capitan 上有 cmake 版本 3.19.0,brew install cmake最初是使用的,但是当我尝试运行时brew upgrade cmake出现以下错误

decimal.cc:181:decimal.cc:181:1: error1: error: : thread-local storage is not supported for the current target
thread-local storage is not supported for the current target
thread_local Context context{context_template};
^
thread_local Context context{context_template};
^
2 errors generated.
2 errors generated.
make[1]: *** [.objs/decimal.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [decimal.o] Error 1
make: *** [libcxx] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!


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,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

我还收到了有关过时 xCode 的警告,但不确定这是否是一个问题,无论如何,我现在不想升级 xCode。如果我的 macos 版本意味着我无法获得最新的 cmake,任何人都清楚吗?

提前致谢。

标签: macoscmakecompiler-errorshomebrewupgrade

解决方案


推荐阅读