Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error Installing sbcl

48 views
Skip to first unread message

Steve Graham

unread,
Sep 14, 2016, 2:53:56 PM9/14/16
to
Starting with 1.3.1, trying to install 1.3.9, but ending up with 1.3.1. Unless you invoke it from /usr/local/bin and then it is 1.3.9.

What's up?

===

steve@steve-Satellite-L555D:~$ sbcl --version
SBCL 1.3.1.debian

steve@steve-Satellite-L555D:~/Downloads/sbcl-1.3.9-x86-64-linux$ sudo sh install.sh
[sudo] password for steve:
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/asdf'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//uiop.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//asdf.fasl "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/asdf'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-aclrepl'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-aclrepl.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-aclrepl.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-aclrepl'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-bsd-sockets'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-bsd-sockets.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-bsd-sockets.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-bsd-sockets'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-cltl2'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-cltl2.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-cltl2.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-cltl2'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-concurrency'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-concurrency.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-concurrency.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-concurrency'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-cover'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-cover.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-cover.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-cover'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-executable'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-executable.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-executable.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-executable'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-gmp'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-gmp.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-gmp.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-gmp'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-grovel'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-grovel.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-grovel.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-grovel'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-introspect'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-introspect.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-introspect.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-introspect'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-md5'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-md5.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-md5.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-md5'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-mpfr'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-mpfr.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-mpfr.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-mpfr'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-posix'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-posix.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-posix.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-posix'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-queue'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-queue.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-queue.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-queue'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-rotate-byte'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-rotate-byte.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-rotate-byte.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-rotate-byte'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-rt'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-rt.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-rt.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-rt'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-simple-streams'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-simple-streams.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-simple-streams.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-simple-streams'
make: Entering directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-sprof'
cp /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-sprof.fasl /home/steve/Downloads/sbcl-1.3.9-x86-64-linux/obj/sbcl-home/contrib//sb-sprof.asd "/usr/local/lib/sbcl/contrib/"
make: Leaving directory '/home/steve/Downloads/sbcl-1.3.9-x86-64-linux/contrib/sb-sprof'

SBCL has been installed:
binary /usr/local/bin/sbcl
core and contribs in /usr/local/lib/sbcl/

Documentation:
man /usr/local/share/man/man1/sbcl.1
steve@steve-Satellite-L555D:~/Downloads/sbcl-1.3.9-x86-64-linux$ sbcl --version
SBCL 1.3.1.debian
steve@steve-Satellite-L555D:~/Downloads/sbcl-1.3.9-x86-64-linux$ which sbcl
/usr/local/bin/sbcl

steve@steve-Satellite-L555D:~/Downloads$ cd /usr/local/bin
steve@steve-Satellite-L555D:/usr/local/bin$ ls -al sbcl
-rwxr-xr-x 1 root root 766667 Sep 14 11:34 sbcl
steve@steve-Satellite-L555D:/usr/local/bin$ ./sbcl
This is SBCL 1.3.9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
*

Pascal J. Bourguignon

unread,
Sep 14, 2016, 3:29:08 PM9/14/16
to
Steve Graham <solitary....@gmail.com> writes:

> Starting with 1.3.1, trying to install 1.3.9, but ending up with
> 1.3.1. Unless you invoke it from /usr/local/bin and then it is 1.3.9.
>
> What's up?

Again, you have probably installer sbcl with the debian package manager
in the first place. Distributions install their programs in /bin or
/usr/bin usually.

On the other hand, when you install programs yourself, outside of the
distribution package manager, they're installed by default in /usr/local
or sometimes in /opt/local.


This is generally considered a "good thing"™, since this allows you to
run either version of the program. Notably, this allows the other
programs installed by the distribution package manager, to rely on the
sbcl dependency provided and installed by the distribution package
manager, even when the user installs his own version: this prevents
breakage!

You can choose one version or the other by specifying the full path:

/usr/bin/sbcl --version # --> 1.3.1.debian
/usr/local/bin/sbcl --version # --> 1.3.9

You can also choose the default version you will use on the terminal,
and also in scripts, by setting the PATH environment variable, with one
directory or the other in earlier position. (Of course, this is global
for all the programs in those directories, so it's impossible to choose
program a in one directory and program b in another, when versions of
both a and b are in both directories).

If you use bash, you would set the environment variables in some file,
and export the BASH_ENV environment variables set to the path of that
file. Usually, it's $HOME/.bash_env:

echo "export BASH_ENV=\"$HOME/.bash_env\"" >> "$HOME/.bashrc"
echo "export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin" >> "$HOME/.bash_env"
source "$HOME/.bash_env"
sbcl --version # --> 1.3.9



You can even go further, by installing multiple versions, say in
/opt/sbcl-1.1 /opt/sbcl-1.3.1 /opt/sbcl-1.3.9 etc.
And then you can choose one version or another with:

/opt/sbcl-1.3.1/bin/sbc --version # --> 1.3.1

or:

export "PATH=/opt/sbcl-1.3.1/bin:$PATH"
sbcl --version # --> 1.3.1



> steve@steve-Satellite-L555D:~$ sbcl --version
> SBCL 1.3.1.debian
>
> steve@steve-Satellite-L555D:~/Downloads/sbcl-1.3.9-x86-64-linux$ sudo
> sh install.sh
> […]
> SBCL has been installed:
> binary /usr/local/bin/sbcl
> core and contribs in /usr/local/lib/sbcl/
> […]
> steve@steve-Satellite-L555D:/usr/local/bin$ ./sbcl
> This is SBCL 1.3.9, an implementation of ANSI Common Lisp.
> More information about SBCL is available at <http://www.sbcl.org/>.
> […]

--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk

Steve Graham

unread,
Sep 14, 2016, 6:21:04 PM9/14/16
to
Thank you for your time, effort and information, Pascal.


Steve

---

On Wednesday, September 14, 2016 at 12:29:08 PM UTC-7, informatimago wrote:
> Steve Graham <xxxx> > Starting with 1.3.1, trying to install 1.3.9, but ending up with

steve gonedes

unread,
Mar 19, 2021, 4:25:00 PM3/19/21
to

I have been installing local stuff in ~/.local/

it works great. I have run into problems with package manager. I used to
use /usr/local/ but these days it's better off in /opt/sbcl/ or
~/.local/lib/

you might try using `whereis` ; man 1 whereis

0 new messages