如何安装 sorbet 的发布版本?

How do I install release build of sorbet?

我根据 GitHub 自述文件中的说明安装冰糕:

Install the dependencies

brew install bazel autoconf coreutils parallel Clone this repository

git clone https://github.com/sorbet/sorbet.git cd sorbet Build Sorbet

bazel build //main:sorbet --config=dbg

但是当我 运行 它时,我得到了以下信息:

$ bazel-bin/main/sorbet -e "42 + 2"
 Hey there! Heads up that this is not a release build of sorbet.
Release builds are faster and more well-supported by the Sorbet team.
Check out the README to learn how to build Sorbet in release mode.
To forcibly silence this error, either pass --silence-dev-message,
or set SORBET_SILENCE_DEV_MESSAGE=1 in your shell environment.

No errors! Great job.

我想安装发布版本,因为我想使用支持良好的冰糕,所以我再次访问他们的 GitHub 自述文件并查看:

--config=release-mac and --config=release-linux Exact release configuration that we ship to our users.

所以我运行这个:

bazel build //main:sorbet --config=dbg --config=release-mac

但它以这一行结束:

FAILED: Build did NOT complete successfully

我也试过这个:

bazel build //main:sorbet --config=release-mac

但它也以这一行结束:

FAILED: Build did NOT complete successfully

我应该如何安装 Sorbet 的发布版本?

Sorbet 存储库中的自述文件描述了如何编译 Sorbet,而不是如何安装现有版本。

要安装现有版本,请按照 https://sorbet.org/docs/adopting

上的指南进行操作

如果您坚持自己从源代码编译版本,为了帮助您,我们将需要更多构建日志,因为您没有包含说明具体问题所在的消息。

现在,使用水晶球,我猜你正试图在系统 C++ headers 未附带的 OS X Mojave 上编译 Sorbet,因此无法找到构建math.hstdio.h。 Sorbet 自述文件包含有关如何在自述文件中安装 headers 的说明:https://github.com/sorbet/sorbet#common-compilation-errors.