首页 > 解决方案 > How do I install release build of sorbet?

问题描述

I install sorbet according to their instructions on the GitHub README:

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

But when I run it, I got the following:

$ 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.

I want to install the release build because I want to use a well supported sorbet so I go to their GitHub README again and see this:

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

So I run this:

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

But it end up with this line:

FAILED: Build did NOT complete successfully

I tried this too:

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

But it end up with this line too:

FAILED: Build did NOT complete successfully

What should I do to install a release build of Sorbet?

标签: sorbet

解决方案


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

要安装现有版本,请遵循https://sorbet.org/docs/adopting上的指南

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

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


推荐阅读