Update BUILDING.md

This commit is contained in:
Sean 2021-09-09 11:12:36 +10:00 committed by GitHub
parent 427b8241c3
commit 09baab90b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 7 deletions

View File

@ -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