1

I consistently get this error message when running cargo build-sbf or cargo build-bpf:

Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
cargo-build-bpf child: /home/anish/.local/share/solana/install/active_release/bin/cargo-build-sbf --arch bpf
/home/anish/.rustup/toolchains/bpf/bin/cargo: /lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/anish/.rustup/toolchains/bpf/bin/cargo)
/home/anish/.rustup/toolchains/bpf/bin/cargo: /lib/libssl.so.1.1: version `OPENSSL_1_1_0' not found (required by /home/anish/.rustup/toolchains/bpf/bin/cargo)
/home/anish/.rustup/toolchains/bpf/bin/cargo: /lib/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/anish/.rustup/toolchains/bpf/bin/cargo)
/home/anish/.rustup/toolchains/bpf/bin/cargo: /lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by /home/anish/.rustup/toolchains/bpf/bin/cargo)
/home/anish/.rustup/toolchains/sbf/bin/cargo: /lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/anish/.rustup/toolchains/sbf/bin/cargo)
/home/anish/.rustup/toolchains/sbf/bin/cargo: /lib/libssl.so.1.1: version `OPENSSL_1_1_0' not found (required by /home/anish/.rustup/toolchains/sbf/bin/cargo)
/home/anish/.rustup/toolchains/sbf/bin/cargo: /lib/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/anish/.rustup/toolchains/sbf/bin/cargo)
/home/anish/.rustup/toolchains/sbf/bin/cargo: /lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by /home/anish/.rustup/toolchains/sbf/bin/cargo)

The files /lib/libssl.so.1.1 and /lib/libcrypto.so.1.1 do exist (although they are symlinks).

Would be helpful if someone can help me troubleshoot this

OS: Pop! OS 22.04 (based on Ubuntu 22.04)

Edit: openssl version output - v1.1.1q

1 Answer 1

1

Sudo apt-get install libssl-dev Do this might work (not sure)

1
  • It is already installed
    – Anish De
    Commented Sep 21, 2022 at 4:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.