From e515c7399be8cdf974772d08468c38132baa95bf Mon Sep 17 00:00:00 2001 From: enaples Date: Mon, 25 May 2026 17:17:26 +0200 Subject: [PATCH] docs: fixing Fedora installation - `dnf`: switched from `groupinstall` to `group install` which is supported both by `dnf4`and `dnf5` which is used starting from fedora41 - added `openssl` and `openssl-devel` dependency - `uv` install added, which the build now requires - bumped latest version - use `uv` to tun the `make` --- .../getting-started/installation.md | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/getting-started/getting-started/installation.md b/doc/getting-started/getting-started/installation.md index 8236c0d147bf..11444c934151 100644 --- a/doc/getting-started/getting-started/installation.md +++ b/doc/getting-started/getting-started/installation.md @@ -157,7 +157,7 @@ OS version: Fedora 39 or above Get dependencies: ```shell sudo dnf update -y && \ - sudo dnf groupinstall -y \ + sudo dnf group install -y \ 'c-development' \ 'development-tools' && \ sudo dnf install -y \ @@ -180,7 +180,9 @@ sudo dnf update -y && \ protobuf-compiler \ protobuf-devel \ postgresql-devel \ - python3-mako && \ + python3-mako \ + openssl \ + openssl-devel && \ sudo dnf clean all ``` @@ -190,6 +192,12 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env ``` +Install uv (Python package manager, used by the build): +```shell +curl -LsSf https://astral.sh/uv/install.sh | sh +export PATH="$HOME/.local/bin:$PATH" +``` + Install lowdown (for documentation generation): ```shell cd /tmp && \ @@ -206,7 +214,7 @@ rm -rf /tmp/VERSION_1_0_2.tar.gz /tmp/lowdown-VERSION_1_0_2 Make sure you have [bitcoind](https://github.com/bitcoin/bitcoin) available to run. -Clone lightning: +Clone lightning (including submodules): ```shell git clone https://github.com/ElementsProject/lightning.git cd lightning @@ -214,14 +222,15 @@ cd lightning Checkout a release tag: ```shell -git checkout v24.05 +git checkout v26.04 ``` Build and install lightning: ```shell +uv sync --all-extras --all-groups --frozen ./configure -make -sudo make install +RUST_PROFILE=release uv run make -j$(nproc) +sudo RUST_PROFILE=release make install ``` Running lightning (mainnet):