Install lisp on my linux machine

前端 未结 4 2060
悲哀的现实
悲哀的现实 2021-02-19 11:44

I use Vim as my editor. \"Practical common Lisp\" suggest installing Lispbox, I don\'t know how to use emacs, don\'t know how to run lisp code with that T.T after that i find li

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-19 12:27

    Can anybody tell me what exactly need to install lisp on my linux?

    The other answers have described what SLIME, sbcl etc. are. But I wanted to give a concise answer.

    To install clisp on Ubuntu, just run sudo apt-get install clisp. Nothing else is necessary to run Lisp. For other distros find clisp on their relevant package managers. However do not be surprised not to find clisp on some distros, for example the Amazon Linux AMI appears not to have clisp. clisp ~/test.lisp is all you need to run Lisp.

    Nowadays it is more popular to use SLIME and ASDF. As a beginner you will not need to use them yet. SLIME is a fancy editor for Lisp, and ASDF is a package manager. It is much easier to setup Clisp given that it literally takes just one line to install and one line to run. SLIME and ASDF are more involved and take more time to learn and setup. I personally would recommend starting off with using Clisp and only later on using SLIME and ASDF so that you will gain a better understanding of Lisp which will make using SLIME and ASDF much easier. When you are ready, then I recommend reading the documentation of SLIME and ASDF.

提交回复
热议问题