From f085d75ce49820392c62e93beaff2c7f3ce10bd9 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Sun, 3 Mar 2024 19:55:11 +0100 Subject: [PATCH] Document cleanse of build artifacts Fixes: https://github.com/romanz/electrs/issues/1001 --- doc/install.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/install.md b/doc/install.md index b1e16deab..b5d8a6591 100644 --- a/doc/install.md +++ b/doc/install.md @@ -5,8 +5,8 @@ ```bash $ sudo apt update -$ sudo apt install -y clang cmake build-essential git cargo -$ git clone https://github.com/romanz/electrs +$ sudo apt install -y clang cmake build-essential git cargo +$ git clone https://github.com/romanz/electrs $ cd electrs $ cargo build --locked --release $ ./target/release/electrs --version # should print the latest version @@ -206,6 +206,11 @@ Relevant issues: [#134](https://github.com/romanz/electrs/issues/134) and [#391] #### Dynamic linking +Note that if you have previously done a static linking build, it is recommended to clean the build artifacts to avoid build errors (e.g. https://github.com/romanz/electrs/issues/1001): +``` +$ cargo clean +``` + ``` $ ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked --release ```