gpt4 book ai didi

scheme - 如何在chez scheme中加载slib库?

转载 作者:太空宇宙 更新时间:2023-11-03 18:48:55 25 4
gpt4 key购买 nike

chez方案如何加载slib库?

或者任何其他用于 chez 方案的网络服务器库?

slim的说明书上写着:

  1. Configure the Scheme implementation(s) to locate the SLIB directory and implementation directories.
  2. Arrange for each Scheme implementation to load its SLIB initialization file.
  3. Build the SLIB catalog for each Scheme implementation.

我不知道如何做第 3 步和第 4 步。

这是我在文档 slib 中运行“chez”时得到的结果:

> (load "require.scm")
Exception: variable slib:features is not bound
Type (debug) to enter the debugger.
> (load "chez.init")
> (require 'http)
Exception in call-with-output-file: failed for /usr/local/lib/chez/slibcat: no such file or directory
> (require 'http-cgi)
Exception in call-with-output-file: failed for /usr/local/lib/chez/slibcat: no such file or directory
Type (debug) to enter the debugger.
> (load "http-cgi.scm")
Exception in call-with-output-file: failed for /usr/local/lib/chez/slibcat: no such file or directory

最佳答案

你有这个错误

Exception in call-with-output-file: failed for /usr/local/lib/chez/slibcat: no such file or directory" 

因为您没有首先启动 SLib Catalog你可以通过首先在 repl 中运行它来做到这一点:

(require 'new-catalog)

关于scheme - 如何在chez scheme中加载slib库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46849280/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com