Build a Common Lisp Development Environment

Source: Internet
Author: User

After so many years of development, LISP has evolved many dialects, including Common LISP, schema, and Emacs lisp. Select a "general" learning method first.

Build Environment: sbcl + Slime


Sbcl: (Common Lisp compiler) http://www.sbcl.org/index.html


Slime: the superior lisp interaction mode for Emacs


The LISP Interaction Model in Emacs. It is used to develop common LIsp in Emacs. How to develop it and write it again next time.


========================================================== ==============================

Build a lisp environment step by step

========================================================== ======================================

1. Install sbcl

Download http://www.sbcl.org/index.html. For more information, see installfile installation:

Use the original path:

 sudo INSTALL_ROOT=/usr/local sh install.sh


After the installation is complete, the lisp compiling environment has been installed and runs

$sbcl

* Prompt appears. Now we can write LISP:

* (+ 1 2)

The simplest addition result is:

* 3

2. Download Slime

Download slime to your directory:

For example :~ /Slime

3. Configure Emacs

In ~ /. Add in Emacs: (if this file is not available, create one)

;; slime(setq inferior-lisp-program "/usr/local/bin/sbcl")(add-to-list 'load-path "~/slime")(require 'slime)(slime-setup)

The path of sbcl and slime must be set correctly.

4. Run slime and start writing Lisp!

Open Emacs, M + x + SlimeStart!

Emacs starts to screen like OS startup. When the * prompt is displayed, our lisp development environment will be ready.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.