To install the latest LedgerSMB release with all the default options, run:
$ curl -s -o ledgersmb-installer -L https://get.ledgersmb.org/ledgersmb-installer
$ chmod +x ledgersmb-installer
$ ./ledgersmb-installer install
You'll want to add a version number at the end to install a specific version; e.g., to install 1.12.1:
$ ./ledgersmb-installer install 1.12.1
The installer supports installation of LedgerSMB on a wide range of operating systems and platforms. When the installer is allowed to install packages through the system package manager, it will do so to satisfy missing dependencies. The package managers of the following systems are supported at the moment:
Perl dependencies which can't be installed from the system's package repository will be installed from CPAN. This means that installation on a system with an unrecognized package manager, all modules will be installed from CPAN. OpenSUSE was used to test that the installer works on platforms without a supported package manager.
Download the installer and make it executable using these commands:
$ curl -s -o ledgersmb-installer -L https://get.ledgersmb.org/ledgersmb-installer
$ chmod +x ledgersmb-installer
Or, download the content of https://get.ledgersmb.org/ledgersmb-installer using your favorite browser.
ledgersmb-installer install [options] <version>
ledgersmb-installer help
ledgersmb-installer compute [options] <version>
ledgersmb-installer system-id [options]
Options applicable to all commands.
--log-level=<level>
info
fatal
,
error
, warning
, info
,
debug
and trace
--[no-]prepare-env
make
and gcc
. Additional dependencies may
apply based on --compute-packages
. Installed dependencies are removed
after installation. This may be prevented using --no-uninstall-env
--target=<path>
./ledgersmb/
install
and compute
commands--[no-]verify-sig
--no-verify-sig
gpg
to verify the release signature of the downloaded tarball--[no-]uninstall-env
--uninstall-env
--yes
-y
)There are no options specific to this command.
--yes
--[no-]compute-packages
--compute-packages
--local-lib=<path>
local
target
path.--[no-]system-packages
--system-packages
if running as a user with package
installation rights (usually root
).There are no options specific to this command.
The project is hosted on GitHub, as part of the LedgerSMB organization. Please file any bugs you run into using the provided template.
For improvement ideas, general questions and other conversations, please use GitHub Discussions.
Contributions take many forms: reporting bugs, helping other users with their installation problems, describing enhancement ideas and finally, submitting code changes. All of these contributions are equally valued.
If you want to add support for your favorate platform, please check out Debian support which provides a great example to get started.
The installer prepares a system for running LedgerSMB. This includes:
In case the installed system Perl isn't new enough for the LedgerSMB version being installed, the installer can be instructed to compile and install a suitable Perl version using Perlbrew.
Installation of the system dependencies listed in step (1) requires support for the specific operating system or (linux) distribution. Current support is available Debian and Fedora and their derivatives (e.g., Ubuntu, Mint and RedHat). Installation on other platforms requires the dependencies to be available beforehand. If this condition is met, the process should succeed. Otherwise, the lacking dependencies will be reported as missing and the installation will be undone.
Modules that are not available as system packages will be installed from CPAN distributions. Platforms without package manager support (including non-system Perl installations) will install all dependencies from CPAN. This process depends on developer tools being available. On supported platforms the installer will temporarily add these tools (and remove them after the installation completes).
Some dependencies (most notably libpq [PostgreSQL client library])
cannot be installed by the installer on systems without package manager support.
In such cases, the dependencies must exist on the system before starting
installation. The same applies to the latex
dependency; without it,
it's impossible to install the LaTeX::Driver
module from CPAN.