Bitcoin

Electrum – Local Esplora does not compile in clean ‘new-index’ branch.

https://github.com/Blockstream/electrs failed to compile out of the box on a clean branch. new-index As instructed in the README. The build fails with the following error:

error: failed to run custom build command for `librocksdb-sys v6.20.3`

...

electrs/target/release/build/librocksdb-sys-3b3cba65ffc3c8e0/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_854_1)" is not a valid Ident'

The difference from the run command in README.md is that it attempts to connect to Polar/Regtest data. Based on feedback from related questions, the command runs and verifies that the directory exists.

cargo run --release --bin electrs -- -vvvv --daemon-dir ~/.polar/networks/1/volumes/bitcoind/backend1 --network=regtest

I would appreciate any feedback on this specific issue and any tips for running Esplora. regtestIdeally, it will expand. --lightmode.

OS: MacOS (Intel)
rustc: 1.72.1
cargo: 1.72.1
rustup: 1.26.0

Related Articles

Back to top button