Skip to content

Commit

Permalink
Use dynamic linking for RocksDB when building electrs
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Dec 10, 2021
1 parent a7fe5ff commit 2f9c6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home.admin/config.scripts/bonus.electrs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo
# https://github.com/romanz/electrs/blob/master/doc/usage.md#build-dependencies
sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain none -y
sudo apt install -y clang cmake build-essential # for building 'rust-rocksdb'
sudo apt install -y librocksdb-dev=6.11.4-3 # current version on Debian 11

echo
echo "# Downloading and building electrs $ELECTRSVERSION. This will take ~40 minutes"
Expand All @@ -286,7 +286,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo -u electrs git reset --hard $ELECTRSVERSION
sudo -u electrs /home/admin/config.scripts/blitz.git-verify.sh \
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
sudo -u electrs /home/electrs/.cargo/bin/cargo build --locked --release || exit 1
sudo -u electrs ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib /home/electrs/.cargo/bin/cargo build --locked --release || exit 1

echo
echo "# The electrs database will be built in /mnt/hdd/app-storage/electrs/db. Takes ~18 hours and ~50Gb diskspace"
Expand Down

0 comments on commit 2f9c6d1

Please sign in to comment.