【问题标题】:compile package is not loaded in chez scheme编译包未在 chez 方案中加载
【发布时间】:2013-11-06 03:23:00
【问题描述】:

我已经安装了 petite chez 方案并使用了 .el 配置文件,如下所示 - 我的 .emacs 文件:

    (add-to-list 'load-path "/home/lambda/slime-2013-04-05")  ; your SLIME directory
    (setq inferior-lisp-program "/usr/bin/clisp") ; your Lisp system
    (require 'slime)
    (slime-setup)
    (setq slime-protocol-version 'ignore) 

    ;;petite scheme setup
    (setq scheme-program-name "/home/lambda/csv8.4/custom/petite")
    (load-file                "/home/lambda/.emacs.d/scheme-setup.el")


(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-enabled-themes (quote (tango-dark))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(add-hook 'lisp-mode-hook '(lambda ()
  (local-set-key (kbd "RET") 'newline-and-indent)))


(if (fboundp 'global-font-lock-mode)
    (global-font-lock-mode 1)        ; GNU Emacs
  (setq font-lock-auto-fontify t))   ; XEmacs

我正在使用的 scheme-setup.el 文件在这里:

https://github.com/tiljeset/emacs/blob/master/scheme-setup.el

现在,当我这样做时

$ emacs -nw -f run-scheme

C-c C-k编译,我得到错误:

Exception in compile-file: compile package is not loaded
Type (debug) to enter the debugger.

在 REPL 中。请问这个问题是什么原因造成的?

(compile-file filename.ss)

给出同样的错误。

【问题讨论】:

    标签: emacs compilation scheme read-eval-print-loop chez-scheme


    【解决方案1】:

    你必须购买编译包。说明在www.scheme.com

    【讨论】:

    • 是的。就像金钱一样。我不确定目前的定价是多少,但有教育折扣,而且价格也不贵。这是获得完整 Chez Scheme 编译器的唯一方法。否则,您可以只使用解释器 Petite Chez Scheme。您需要完整的 Chez Scheme 用于 C 函数接口,并且如果您想分发没有源代码的预编译二进制文件。否则解释器工作得很好;尤其是程序一旦启动,速度就没有差别了。
    • 非常感谢您的回答- C-c C-l 现在必须足够了- 当需要编译时,我将使用 DrRacket!
    • 这是一个老问题,但完整的 Chez 方案现已在cisco.github.io/ChezScheme开源
    猜你喜欢
    • 2023-03-10
    • 2021-03-24
    • 2012-01-04
    • 1970-01-01
    • 2012-08-30
    • 2018-06-12
    • 2020-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多