如何在chez方案中加载slib库?
或chez scheme的任何其他Web服务器库?
在苗条的manuel中,
3.配置Scheme实现以找到SLIB目录和实现目录。 4.为每个Scheme实现安排加载其SLIB初始化文件。 5.为每个Scheme实现构建SLIB目录。
我不知道如何特别做第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
thx for avance
答案 0 :(得分:0)
你有这个错误
Exception in call-with-output-file: failed for /usr/local/lib/chez/slibcat: no such file or directory"
因为您没有首先启动SLib目录 您可以通过在repl中首先运行它来完成此操作:
(require 'new-catalog)
答案 1 :(得分:0)
首先,获取zip文件。
然后,以 root 身份:
/usr/local/lib/chez
/usr/local/lib
(load "/usr/local/lib/slib/chez.init")
(require 'new-catalog)
作为普通用户:
(load "/usr/local/lib/slib/chez.init")