How to Install LISP on Linux?
Last Updated :
22 May, 2024
LISP (List programming) is the second-oldest high-level programming language after Fortran. It has a fully parenthesized prefix notation.
Installing LISP on Linux:
Follow the below steps to install LISP on Linux:
Step 1: Install SBCL compiler.
Steel Bank Common Lisp (SBCL) is the most common Lisp compiler. It is open-source and it provides a compiler, runtime, and an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions.
Install it via the following command (Enter password when prompted):
sudo apt-get update
sudo apt-get -y install sbcl
For arch linux, you can use the following command:
sudo pacman --noconfirm -S sbcl

Step 2: Now Install Quicklisp package manager
sudo apt-get -y install curl
curl -o /tmp/ql.lisp http://beta.quicklisp.org/quicklisp.lisp
sbcl --no-sysinit --no-userinit --load /tmp/ql.lisp \
--eval '(quicklisp-quickstart:install :path "~/.quicklisp")' \
--eval '(ql:add-to-init-file)' \
--quit


Step 3: Now Install the text editor or IDE of your choice
You can use any text editor for editing lisp files. Some popular options are VS code, SLIME, EMACS, Vim, etc.
Suggested extensions for VS code:
Example:
Here we save the file as filename.lisp eg. test.lisp.Â
Lisp
(write-line "Hello Geeksforgeeks")
Navigate to the file location and run it using the command:Â
sbcl --script filename.lisp
For example:
sbcl --script test.lisp
Output:
Similar Reads
How to Install NLTK on Linux? NLTK is Natural Language Tool Kit. It is used to build python programming. It helps to work with human languages data. It gives a very easy user interface. It supports classification, steaming, tagging, etc. In this article, we will look into the process of installing NLTK on Linux. Installing NLTK
1 min read
How to Install NuPIC on Linux? NuPIC (short for "Numenta Platform for Intelligent Computing") is an open-source platform for machine learning and artificial intelligence. It was developed by Numenta, a company founded by Jeff Hawkins, the creator of the PalmPilot and the co-founder of Handspring. NuPIC is based on the theory of t
4 min read
How to Install MySQL on Linux? MySQL is one of the most widely used relational database management systems (RDBMS) Known for its reliability, speed, and scalability. MySQL is used for data operations like querying, filtering, sorting, grouping, modifying, and joining the tables present in the database. It is the backbone of many
5 min read
How to Install .NET on Linux? .NET is a free, cross-platform, open-source developer platform for building many different types of applications.With .NET you can build various kinds of applications including :Web ApplicationMobile AppsDesktop AppsGamesIOTYou can write .NET apps in one of the following languages :Â C#F#Visual basic
1 min read
How to Install PHP on Linux? PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P
2 min read