Installing the lisp Environment

Source: Internet
Author: User

When learning lisp, you must first install the development environment. In Windows, you can directly install lispbox (free) and lispworks (free and paid ).

There are also many choices in Linux. you can install GCL (GNU Common LISP) or clisp. Of course, you can also install lispbox. It feels very easy to use lispbox.

 

Run the command Yum install GCL clisp to install GCL under fedora.

 

The new opensuse version does not contain GCL.

 

Installation of lispbox in Linux can choose to download (http://common-lisp.net/project/lispbox/), you can also install Emacs + slime + (sbcl or clisp ).

 

Emacs installation: Yum install Emacs sometimes requires Emacs color theme, which will generate a. emacs file in the home directory.

 

Slime download: http://common-lisp.net/project/slime/ unzipping in whatever directory, I put it in/opt/Slime

 

Install sbcl: Run Yum install sbcl directly under fedora.

 

Next, configure the slime link Emacs and sbcl:

 

See http://googies.info/374.html

 

Edit. emacs and add the following content:


(Tool-bar-mode-1); disable the Emacs toolbar (menu-bar-mode-1 ); close the Emacs menu bar (add-to-list 'Load-path "/opt/slime") (setq inferior-lisp-program "/usr/bin/sbcl "); sbcl or clisp (require 'slime) (slime-setup' (slime-Fancy); (slime); m-x Slime
After Emacs is enabled, ALT + X Input Slime
You can access the sbcl interaction interface.
C-x C-F open the file. Under the function where the cursor is located, the c-c function is compiled and can be used in the interaction environment.

That's all about it, huh?

 

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.