package - Installing Racket Packages without installing Dr Racket
问题描述
I am running a minimal install of Racket and wish to install the sql package. If I try the command:
raco pkg install sql
I am prompted to install racket-doc
, which has a dependency on drracket
. I would rather not install the whole IDE, as I have space constraints on my application.
I have also tried the --no-docs
flag, which did not have an effect on raco
's behavior as far as I can tell.
Thanks!
解决方案
--no-docs
means it will not setup documentation, but it is still a dependency!
Note however that sql
's info.rkt
indicates racket-doc
as a built-deps
. That means if you install a binary package from the built-package catalog, racket-doc
will no longer be a dependency.
For Racket 7.6 (current version as of writing) and before:
(Note: this solution is due to Jack Firth)
As a first step, we need to add the built-package catalog to the list of catalogs that raco pkg
will use by default. This could be done by:
$ raco pkg config --set catalogs \
"https://download.racket-lang.org/releases/7.6/catalog/" \
"https://pkg-build.racket-lang.org/server/built/catalog/" \
"https://pkgs.racket-lang.org" \
"https://planet-compats.racket-lang.org"
(assuming you are using Racket 7.6)
Then, install binary sql
:
$ raco pkg install --binary sql
For Racket with version after 7.6
Simply run:
$ raco pkg install \
--catalog "https://pkgs.racket-lang.org" \
--catalog "https://pkg-build.racket-lang.org/server/built/catalog/" \
--binary sql
推荐阅读
- javascript - 基于不匹配某些值返回 JSON
- python - Python从字符串中获取特定的数值
- node.js - 与詹金斯一起使用的 groovy 管道的参数化
- c++ - HLS - 使用循环时数组参数接口不同
- javascript - GET 请求返回发送页面的 HTML
- excel - 将值附加到循环内的列表
- c# - ASP.NET Core:在剃刀视图中键入枚举作为复选框,根据 int 值单击
- c++ - 具有两个(或更多)特定包(专业化/重载)的可变参数函数模板
- python-3.x - 在 Azure Devops 中运行管道期间下载任务附件
- html - Bash 字符串替换降价