CLPM is distributed in both source and binary form. For either version, first install the dependencies:
- A Lisp implementation
SBCL is currently required if you are installing from source. SBCL or CCL are the most tested implementations for groveling dependencies from .asd files (necessary if you are installing a development version of a project).
If you want to use development versions of your dependencies.
To install CLPM in binary form, download the appropriate file from https://files.clpm.dev/clpm/. Each release of CLPM consists of the following files:
CLPM compiled for 64bit Mac OS.
CLPM compiled for 64bit Linux using GNU libc (by far the most common).
CLPM compiled for 64bit Linux using musl libc (e.g., Alpine Linux).
CLPM compiled for 64bit Linux on ARM processors using GNU libc.
CLPM compiled for 64bit Linux on ARM processors using musl libc.
CLPM compiled for 32bit Linux on ARM processors using GNU libc.
CLPM compiled for 32bit Linux on ARM processors using musl libc.
CLPM installer for 64 bit Windows.
Text file containing the SHA512 sums for every previously mentioned file.
clpm-$VERSION.DIGESTS, but signed with GPG key
After downloading the tarball and validating the SHA512 sum, unpack it
sh install.sh. By default, it is installed to
but that prefix con be changed using the
After downloading the installer and validating the SHA512 sum, simply run the installer and follow the directions.
CLPM can be customized by placing a file named
customize-target-features.lisp-expr in the root of the repo with a
lambda form in it that takes a list of features and returns a
modified feature list. See
file:features/clpm-features.lisp for a
brief description of the available features.
For example, to disable Dexador support, use the following form:
(lambda (features) (flet ((enable (feature) (pushnew feature features)) (disable (feature) (setf features (remove feature features)))) (declare (ignorable #'enable #'disable)) (disable :clpm-dexador)) features)
Build and install
After cloning the repo and checking out the version you want, ensure the
submodules are up to date (
git submodule init and
update) and run:
sbcl --script scripts/build.lisp
If you're on GNU/Linux, you can then run
sh install.sh to install (see
If you're on Windows, you need to additionally install WiX v3.x and run the following:
sbcl --script scripts/build-wxs.lisp cd build %PATH_TO_WIX_INSTALL%/bin/candle clpm.wxs %PATH_TO_WIX_INSTALL%/bin/light clpm.wxs -ext %PATH_TO_WIX_INSTALL%/bin/WixUIExtension.dll -cultures:en-us -out clpm.msi
This will get you an installer you can use.
If you would like to hack on CLPM, it may be easiest to load CLPM every
time you want to use it instead of building a binary. The easiest way to
do this is to execute
scripts/clpm-live-sbcl. I recommend symlinking
it to something like