example-helloworld
example-helloworld copied to clipboard
Rust build fails on Ubuntu 22.04 (cannot find libssl.so)
Following the README as written. Fails at the build:program-rust step. Seems to be looking for libssl but cannot find it...
dev@dev-vm-crypto:~/repos/example-helloworld$ npm run build:program-rust
> [email protected] build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program
BPF SDK: /home/dev/.local/share/solana/install/releases/stable-157aa16c6b8b3f3d965680c87a8703047e475881/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: rustup toolchain link bpf /home/dev/.local/share/solana/install/releases/stable-157aa16c6b8b3f3d965680c87a8703047e475881/solana-release/bin/sdk/bpf/dependencies/bpf-tools/rust
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
/home/dev/.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 libssl-dev installed, as well as other dependencies from root solana project: libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make
same problem here. did you fix?
Nope. I had to switch to Ubuntu 20.04
Getting this error as well and above fix returns a 404 while trying to fetch the file ^
wget nz2.archive got 404.
i found another souce.
http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1_amd64.deb
quote:https://ubuntu.pkgs.org/21.10/ubuntu-main-amd64/libssl1.1_1.1.1l-1ubuntu1_amd64.deb.html
一样的的问题,我也不行
Here is the solution to fix this: coral-xyz/anchor#1831
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
404 Not Found
Hi any one who found the solution to the above error on ubuntu 22.04 please?
Hi any one who found the solution to the above error on ubuntu 22.04 please?
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
solved the issue
No such file or directory anyway
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
this works.
http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openss
архив ставится?
easier way its reinstall Ubuntu to version 20.04.On that version all work fine, even with installing Anchor i have no problem
This solved the problem for me on my Ubuntu 22.04 machine. Thanks.
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
Thank you but I managed to solve this by installing LSB in my Ubuntu 22.04 by sudo apt install lsb
On Mon, Aug 1, 2022, 18:11 Bogdan Melnikovskiy @.***> wrote:
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
solved the issue
— Reply to this email directly, view it on GitHub https://github.com/solana-labs/example-helloworld/issues/470#issuecomment-1201333457, or unsubscribe https://github.com/notifications/unsubscribe-auth/APR5N4JHLB6PPPWWNGAO5NLVW7SLNANCNFSM5VVYMDXA . You are receiving this because you commented.Message ID: @.***>
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
this works.
It works on my side too Thanks
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
this works.
This works for me.
Closing since there's a resolution to the problem. In the future, we don't use GitHub for developer support, and encourage you ask your question on the Solana Stack Exchange https://solana.stackexchange.com/ or some other developer support forum.
The version provided in the solution doesn't exist anymore and you will now receive an error 404 page does not exists message.
try this version: wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
The versions mentioned above didnt work for me. Found this version and it works fine now. THANKS to all those came before me (:
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
This help! Thanks..
In my case, libssl was upgraded to version 2.19. So I fixed the issue by running the following commands:
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
This dep has now been updated to
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb