Build from source
How to build rqlite from source
Prebuilt binaries are available for a variety of systems including Linux, macOS, and Microsoft Windows, and can be built for many target CPUs, including x86, AMD, MIPS, RISC, PowerPC, and ARM. You can find prebuilt binaries on the rqlite GitHub releases page.
The quickest way to install rqlite on Linux is the install script, which downloads the latest release for your architecture and installs it:
curl -fsSL https://rqlite.io/install.sh | sh
By default this installs into /usr/local/bin. Two environment variables let you control it:
| Variable | Description | Default |
|---|---|---|
RQLITE_VERSION |
The version to install, for example v9.4.1 |
the latest release |
INSTALL_DIR |
The directory to install the binaries into | /usr/local/bin |
RQLITE_VERSION=v9.4.1 INSTALL_DIR=$HOME/bin sh -c "$(curl -fsSL https://rqlite.io/install.sh)"
docker run -p 4001:4001 rqlite/rqlite
Check out the rqlite Docker page for more details on running rqlite nodes via Docker.
docker pull ghcr.io/rqlite/rqlite
brew install rqlite
You can download the Windows release on the GitHub releases page. Alternatively the latest top-of-tree build is also available for download from AppVeyor.
An rqlite release includes two key binaries:
rqlited: the actual rqlite server.rqlite: a command-line tool for interacting with rqlite.Depending on the packaging process, a simple benchmarking tool, rqbench, may also be included.
How to build rqlite from source