02-lisp基础视频教程

  • 0

02-lisp基础视频教程

Category:中文学习 Tags : 

二、选择lisp实现和软件安装
1、当前常用的lisp实现
lispworks
http://www.lispworks.com/

Portacle
https://portacle.github.io/

ccl

sbcl
sudo apt-get install sbcl

git clone https://git.code.sf.net/p/sbcl/sbcl
git clone git://git.code.sf.net/p/sbcl/sbcl.git
cd sbcl
sudo ./make.sh
sudo ./install.sh

clisp
sudo apt-get install clisp
2、工具安装
quicklisp
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl
(load “quicklisp.lisp”)
(quicklisp-quickstart:install)
(ql:system-apropos “vecto”)
(ql:quickload “vecto”)
(ql:add-to-init-file)
(quit)
升级
(ql:update-client)
(ql:update-dist “quicklisp”)

emacs
sudo apt-get install emacs
源码安装emacs
需要软件makeinfo 安装
sudo apt-get install texinfo
sudo apt-get install libgtk2.0-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff5-dev
sudo apt-get install libncurses5-dev
sudo apt-get install libhogweed4 –reinstall
sudo apt-get install libgmp-dev
sudo apt-get install libmpfr-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install build-essential
sudo apt-get install gnome-core-devel
sudo apt-get install pkg-config
sudo apt-get install devhelp
sudo apt-get install libglib2.0-doc libgtk2.0-doc
sudo apt-get install glade libglade2-dev
sudo apt-get install glade-gnome glade-common glade-doc
sudo apt-get install libgtk2.0-dev
sudo apt-get install libgtk2.0*
sudo apt-get install mailutils
sudo apt-get install libp11-kit-dev
sudo apt-get install libcurl4-gnutls-dev libcurl4-doc libgnutls28-dev libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev
sudo apt-get install doc-base krb5-doc libgcrypt20-doc gnutls-doc gnutls-bin krb5-user

# 开始安装
sudo ./configure
sudo make -j 4
sudo make install

新建文件并添加下面的内容 ~/.emacs:

(load (expand-file-name “~/quicklisp/slime-helper.el”))
;; Replace “sbcl” with the path to your implementation
(setq inferior-lisp-program “sbcl”)

(slime)

slime
(ql:quickload “quicklisp-slime-helper”)
sudo apt-get slime

其它

(ql:quickload “mcclim”)
提示安装成功
测试
(asdf:oos ‘asdf:load-op :clim-examples)
(in-package :clim-demo)
(demodemo)
成功显示示例

安装文本处理正则表达式
(ql:quickload :cl-ppcre)
测试功能
(asdf:oos ‘asdf:test-op :cl-ppcre)

http://mip.i3geek.com

Leave a Reply

搜索

分类目录

公 告

本网站学习论坛:

www.zhlisp.com

lisp中文学习源码:

https://github.com/zhlisp/

欢迎大家来到本站,请积极评论发言;

加QQ群学习交流。