SBCL installation in linux

10,651

Solution 1

If you are using the Debian or Ubuntu distributions, you can install SBCL from their repositories: just type sudo apt-get install sbcl.

Solution 2

What flavor of linux?

If you use a popular distribution, e.g., debian, ubuntu, fedora, &c, then sbcl comes prepackaged: aptitude install sbcl or yum install sbcl.

Solution 3

in file which include to archive with sources and named INSTALL we see next text:

end of section 2.1

... Now you should have the same src/runtime/sbcl and output/sbcl.core files that come with the binary distribution, and you can install them as described in the section 1. "BINARY DISTRIBUTION".

the way for you are next:

  1. download sbcl sources using any convenient way for you.

  2. run shell terminal (may be window) and go to the sources archive path

    $ cd /path/to/sbcl-sources.tar.bz2
    $ tar -xjvf sbcl*.tar.bz2
    $ cd sbcl [TAB COMPLETE AND ENTER]
    $ emacs INSTALL

now you will see INSTALL file, which contains installation notes. As we will see in 2.1 section

To build SBCL you need a working toolchain and a Common Lisp system (see section 2.5 "Supported platforms"). You also need approximately 128 Mb of free RAM+swap.

To build SBCL using alredy installed SBCL run

$sh make.sh # may be need execute rights. run 'chmod +x make.sh' and try again

and go next according instruction.

If you don't have existing sbcl instruction said next:

If you don't already have an SBCL binary installed as "sbcl" on your system, you'll need to tell make.sh what Lisp to use as the cross-compilation host. For example, to use CMUCL (assuming has been installed under its default name "lisp") as the cross-compilation host:

$ sh make.sh --xc-host='lisp -batch -noinit'

assuming supported lisp platforms see 2.5 section. Generally, if you attentively read INSTALL file you will able to do it easy and quickly. Have fun and happy new year.

Share:
10,651
Red Lv
Author by

Red Lv

Updated on June 04, 2022

Comments

  • Red Lv
    Red Lv almost 2 years

    How to install sbcl in os linux for a freshman of lisp.

    I found just use the command sh install.sh the error info is: src/runtime/sbcl not found, aborting installation

  • Red Lv
    Red Lv almost 11 years
    RedHat Linux. The apt and yum command has been forbidden in the os. So the only way to install is to download the source or the binary to install.