作者:兰毛zg | 来源:互联网 | 2023-05-18 15:01
下载地址:http:www.iro.umontreal.ca~gambitdownloadgambitv4.7source1.解压.tgz文件#tar-zxvf*.tgz2.安
下载地址:http://www.iro.umontreal.ca/~gambit/download/gambit/v4.7/source/
1.解压.tgz文件
#tar -zxvf *.tgz
2.安装步骤
# ./configure
# make
# sudo make install
3.配置gambit-c的gambit.el
# cp /usr/local/Gambit-C/share/emacs/site-lisp/gambit.el ~/.emacs.d/site-lisp
4.配置.emacs
(add-to-list 'load-path "~/.emacs.d/site-lisp")
(setenv "PATH" (concat "/usr/local/Gambit-C/bin/:" (getenv "PATH")))
(setq exec-path (append '("/usr/local/Gambit-C/bin/") exec-path))
(require 'gambit)
5.在emacs里启动并测试
<1>M-x run-scheme
<2>创建test.scm
(define add (lambda (a b) (* a b))) //执行C-x C-e
(add 22 3) //执行C-x C-e
6.gambit是跨平台的,在mac,linux和windows下都可以用
在windows下装一个mingwin即可