sorbet - 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 repo 中的自述文件描述了如何编译 Sorbet,而不是如何安装现有版本。
要安装现有版本,请遵循https://sorbet.org/docs/adopting上的指南
如果您坚持自己从源代码编译发布,为了帮助您,我们将需要更多构建日志,因为您没有包含说明具体问题的消息。
现在,使用水晶球,我猜您正在尝试在不附带系统 C++ 头文件的 OS X Mojave 上编译 Sorbet,因此构建无法找到math.h
或stdio.h
. Sorbet 自述文件包含有关如何在自述文件中安装标头的说明:https ://github.com/sorbet/sorbet#common-compilation-errors 。
推荐阅读
- string - 如何在 OpenMDAO 组件之间传递字符串值?
- api - 下了 52 个订单,只有 50 个通过 API 传递到我们的 ERP 以供登录的客户使用
- wordpress - WP Speed of Light - 如何从延迟加载中排除单个图像
- c++ - 不在 for 循环内的顺序函数的 OpenMP 并行化
- json - 如何在 Apache Nifi 中合并分区的 Json
- xamarin.forms - 在 Xamarin Forms App 中集成 Twilio 聊天功能
- php - 警告:stripos() 在 php 中至少需要 2 个参数
- javascript - jQuery.datepicker 在第二次调用时未定义
- python - 我尝试使用 nltk.download("stopwords") 为 NLP 模型下载 nltk 'stopwords'。显示错误
- javascript - 如何确定元素是否在视口上方?