Installing
Releases
The main channel to compile Pijul from source is the Rust Language package manager: cargo. You’ll need to download rustup from here to install cargo.
On installing cargo, there are also three different channels to choose from, namely: stable, beta and nightly. You can find more information about it here. If you’re unsure of which channel to choose, go with stable as your default rust toolchain:
rustup default stable
If you’ve already installed rustup before, make sure to update it.
Next, you’ll need the necessary libraries and header files installed on your computer and clang compiler:
On Debian:
sudo apt install make libsodium-dev libclang-dev pkg-config libssl-dev libxxhash-dev libzstd-dev clang
On OSX:
brew install llvm libsodium openssl xxhash zstd
On Arch Linux:
sudo pacman -S clang libsodium gcc-libs rustup pkgconf diffutils make xxhash
On openSUSE Tumbleweed:
sudo zypper in clang-devel libopenssl-devel libsodium-devel libzstd-devel pkgconfig xxhash-devel
After installing the necessary libraries and header files, it’s time to install Pijul!
Run the following command in your terminal:
cargo install pijul --version 1.0.0-alpha.24
You might need to add the install directory to your $PATH environment
variable. For example: adding the following to your
~/.config/environment.d/envvars.conf:
export PATH="$PATH:HOME/.cargo/bin/"
Distribution packages
Nix and NixOS
Nix is a package manager that can be installed on any linux distribution, and on OSX.
nix-env --upgrade
nix-env -iA pijul
Debian
curl https://nixos.org/nix/install | sh
If it fails with the following error:
nix error: cloning builder process: Operation not permitted
then create a file as root:
sudo su root -c 'echo "kernel.unprivileged_userns_clone=1" >> /etc/sysctl.d/nix.conf'
Arch Linux
Pijul is packaged in AUR; however, this package is currently flagged Out-of-date and seems to be broken.
openSUSE
The stable version (0.12.2) is available in openSUSE Leap 15.2 and openSUSE Tumbleweed repositories:
sudo zypper install pijul
If you are interested in the development version (1.0.0-alpha.X), you can find
a package for
openSUSE Tumbleweed in the openSUSE Build Service:
sudo zypper addrepo -f -r https://download.opensuse.org/repositories/devel:/tools:/scm/openSUSE_Tumbleweed/devel:tools:scm.repo
sudo zypper install --allow-vendor-change pijul
Use the development version at your own risk. As soon as Pijul 1.0.0 is published, the package will be updated and submitted to openSUSE Tumbleweed.
Windows
We do not provide Windows binaries at the moment, but we would like to. If you want to help us do that, please contact us.