1.9 KiB
1.9 KiB
Installation
Installation
Building GRM currently requires the nightly Rust toolchain. The easiest way
is using rustup. Make sure that rustup is properly installed.
Make sure that the nightly toolchain is installed:
$ rustup toolchain install nightly
Then, install the build dependencies:
| Distribution | Command |
|---|---|
| Archlinux | pacman -S --needed gcc openssl pkg-config |
| Ubuntu/Debian | apt-get install --no-install-recommends pkg-config gcc libssl-dev zlib1g-dev |
Then, it's a simple command to install the latest stable version:
$ cargo +nightly install git-repo-manager
If you're brave, you can also run the development build:
$ cargo +nightly install --git https://github.com/hakoerber/git-repo-manager.git --branch develop
Static build
Note that by default, you will get a dynamically linked executable.
Alternatively, you can also build a statically linked binary. For this, you
will need musl and a few other build dependencies installed installed:
| Distribution | Command |
|---|---|
| Archlinux | pacman -S --needed gcc musl perl make |
| Ubuntu/Debian | apt-get install --no-install-recommends gcc musl-tools libc-dev perl make |
(perl and make are required for the OpenSSL build script)
The, add the musl target via rustup:
$ rustup +nightly target add x86_64-unknown-linux-musl
Then, use a modified build command to get a statically linked binary:
$ cargo +nightly install git-repo-manager --target x86_64-unknown-linux-musl --features=static-build