Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

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 this issue Apr 25, 2023 · 4 comments

Comments

@reselbob
Copy link

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:

> [email protected] 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
Copy link
Author

BTW: My node version is v18.12.1

@itayLev1
Copy link

itayLev1 commented May 23, 2023

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@reselbob @ShykerBogdan @itayLev1 and others