solana-labs / example-helloworld

Hello world on Solana
MIT License
906 stars 869 forks source link

Getting an error: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory #602

Open reselbob opened 1 year ago

reselbob commented 1 year ago

Hi:

I am trying to run the setup example in the readme. I am running Fedora release 37 (Thirty Seven).

When I run $ npm run build:program-rust get an error in the following output:

> helloworld@0.0.1 build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
cargo-build-bpf child: /home/reselbob/.local/share/solana/install/active_release/bin/cargo-build-sbf --manifest-path=./src/program-rust/Cargo.toml --sbf-out-dir=dist/program --arch bpf
/home/reselbob/.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 have installed OpenSSL, which I thought would address the problem. But that effort did not help.

Help? Please?

reselbob commented 1 year ago

BTW: My node version is v18.12.1

itayLev1 commented 1 year ago

You can look at this page for more detailes.

Try this one I think it should help. In fact its downloading and installing libssl (shared folder manager) older version.

run these in CLI: 1) download file from the link wget https://packages.ubuntu.com/focal/amd64/libssl1.1/download 2) then install it using: sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb

ShykerBogdan commented 1 year ago

I had to use Ubuntu 20.4 instead of 22 to fix the issue, maybe Fedora has some similar issue