Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
- Installing from packages
Batteries is packaged in several distributions and package systems (some may have older packages):
- Installing from source
Batteries can be installed from source by downloading and unpacking the tarball (or cloning the Git repository) and running the following commands with GNU Make:
$ make $ make test $ make install
$ make install-doc
The following variables can be used to control Make’s behavior:
Set this to `no` to disable building dynamically-loadable native code modules for Batteries.
Set this to `no` to disable all native code compilation. This disables dynamically loaded native code modules as well.
Specifies the location for installing documentation. Defaults to `/usr/share/doc/ocaml-batteries`.
Specifies the default command for invoking a web browser for help in the Batteries toplevel enhancements. Defaults to `x-www-browser %s`.
The modules are installed to `ocamlfind`’s default installation directory. Consult the OCamlFind documentation for how to control this via environment variables.