Reputation: 12729
I'm new to Linux and Solana development, I'm following this Solana tutorial:
When I get to anchor build
I get this error:
BPF SDK: /home/niico/.local/share/solana/install/releases/1.10.34/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
/home/myname/.rustup/toolchains/bpf/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
I thought I may have to install some libssl or something - so tried this:
sudo apt install pkg-config libssl-dev
But it appears to install and doesn't fix the problem with anchor build.
I could keep guessing but the tutorial says it should work at this point and I don't want to guess the correct way to do this because I'll probably get into bad habits.
Why is the error happening and how can I get anchor build to work?
Thanks
Upvotes: 0
Views: 1144
Reputation: 8402
This is a common issue if you're using a newer version of Ubuntu. Check out this answer for how to install libssl 1.1.1: Ubuntu 22.04 | libssl.so.1.1: cannot open shared object file: No such file or directory
Upvotes: 1