From 09baab90b819530fadc91603299d283112994621 Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 9 Sep 2021 11:12:36 +1000 Subject: [PATCH 1/2] Update BUILDING.md --- BUILDING.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 7efeaf5..1684703 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -18,18 +18,22 @@ Make sure you're pointing to the right openssl installation (e.g. macOS provides ### Step 2: Build the project +The Linux Rust installer assumes that you already have a C linker installed. If this is not the case you'll see `error: linker 'cc' not found`. To fix this, run: + +``` +sudo apt update +sudo apt upgrade +sudo apt install build-essential libssl-dev pkg-config +``` + +Build it with + ``` cargo build --release ``` -The Linux Rust installer assumes that you already have a C linker installed. If this is not the case you'll see `error: linker 'cc' not found`. To fix this, run: - -``` -apt update -sudo apt install build-essential -``` - ### Step 3: Run it +The two files generated in step 1 should be copied to the same directory as the executable. Alternatively you can use the command line arguments below to specify their locations. The executable needs both the x25519-public-key and the x25519-private-key to run. ``` ./target/release/session-open-group-server From 66e5a61742f4ac49c74900b079d9a278fa4305a8 Mon Sep 17 00:00:00 2001 From: Sean Date: Thu, 9 Sep 2021 11:34:46 +1000 Subject: [PATCH 2/2] Update BUILDING.md Co-authored-by: Jason Rhinelander --- BUILDING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index 1684703..2dcbb0e 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -26,6 +26,8 @@ sudo apt upgrade sudo apt install build-essential libssl-dev pkg-config ``` +(Or the equivalent on a non-Debian-based Linux system). + Build it with ```