Configure CommonLisp in Ubuntu

Source: Internet
Author: User
Translated by binghe senior author & lt; Practical CommonLisp Programming & gt; published .. I bought a copy to prepare for learning CL .. it seems that there is no good environment in win .. so I had to run Ubuntu under the virtual machine to learn CL .. the following is my personal installation process .. 1. install emacssudoapt-getinstallemacs the latest emacs looks like

Translation of binghe senior < <实用common lisp编程> > Published... I bought a copy to prepare for learning CL ..

It seems that Windows does not have a good environment... so I had to run Ubuntu under the virtual machine to learn CL ..

The following is my personal installation process ..

1. Install emacs

  1. Sudo apt-get install emacs
The latest emacs seems to be 23. More ..

To be honest, I have never loved emacs. I used vim all the year round. But this time it seems that I can only learn the legendary artifacts ..


2. Install the lisp Environment

Same as in the book. Select sbcl

  1. Sudo apt-get install sbcl clisp
The specific execution program location of sbcl is/usr/bin/sbcl .. this will be used when emacs is configured later.


3. Install slime

  1. Sudo apt-get install slime

The position of the slime is in/usr/share/common-lisp/source/slime...

4. Configure emacs

In ~ /. Configure emacs in emacs... I have no experience, so I have to copy the online configuration as follows.

  1. (Tool-bar-mode-1); close the toolbar.
  2. (Menu-bar-mode-1); close the menu bar
  3. (Setq inferior-lisp-program"/Usr/bin/sbcl"); Sbcl path
  4. (Add-to-list 'Load-path"/Usr/share/common-lisp/source/slime"); Slime path
  5. (Require 'slime)
  6. (Slime-setup); slime Installation
I am used to the pure keyboard operations that vim does not have. So I disabled tool/menu.

5. Enter the CL interaction environment

Start emacs... and press Alt + x (the term looks like M-x)... enter slime... then wait for a while... the CL-USER appears>... It means OK ..

Okay... the next step is to learn CL ..

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.